Home | Wiki | OI 1.x Docs | OI 2.x Docs |
OpenInteract2::Action::TemplateOnly - Base class for template-only actions
# Declare your action with the necessary action_type... [login_box] name = login_box template = base_box::login_box weight = 1 title = Login is_secure = no action_type = template_only # In code, find the action... my $action = CTX->lookup_action( 'login_box' ); # And execute as normal! my $box_content = $action->execute;
This class implements the template_only action type. What this means is that your action declaration can specify that it's of this type and most of the work is done for you.
Copyright (c) 2002-2003 Chris Winters. All rights reserved.
Chris Winters <chris@cwinters.com>
Generated from the OpenInteract 1.99_03 source.