- additional_data
- Called before the model processes the request, this method gives you a
- chance to do some processing for each request, for example, manipulating
- "template_args".
-
- objects
- Get/set a list of model objects. The objects will be accessible in the
- view templates.
-
- If the first item in "$r->args" can be "retrieve()"d by the model class,
- it will be removed from "args" and the retrieved object will be added to
- the "objects" list. See Maypole::Model for more information.
-
- template_args
- $r->template_args->{foo} = 'bar';
-
- Get/set a hash of template variables.
-
- template
- Get/set the template to be used by the view. By default, it returns
- "$r->action"
-
- exception
- This method is called if any exceptions are raised during the
- authentication or model/view processing. It should accept the exception
- as a parameter and return a Maypole::Constant to indicate whether the
- request should continue to be processed.
-
- error
- Get/set a request error
-
- output
- Get/set the response output. This is usually populated by the view
- class. You can skip view processing by setting the "output".
-
- document_encoding
- Get/set the output encoding. Default: utf-8.
-
- content_type
- Get/set the output content type. Default: text/html
-
- send_output
- Sends the output and additional headers to the user.
-
- call_authenticate
- This method first checks if the relevant model class can authenticate
- the user, or falls back to the default authenticate method of your
- Maypole application.
-
- call_exception
- This model is called to catch exceptions, first after authenticate ,then
- after processing the model class, and finally to check for exceptions
- from the view class.
-
- This method first checks if the relevant model class can handle
- exceptions the user, or falls back to the default exception method of
- your Maypole application.
-
- handler
- This method sets up the class if it's not done yet, sets some defaults
- and leaves the dirty work to handler_guts.
-
- handler_guts
- This is the core of maypole. You don't want to know.
-
-SEE ALSO
- There's more documentation, examples, and a wiki at the Maypole web
- site:
-
- http://maypole.perl.org/
-
- Maypole::Application,Apache::MVC, CGI::Maypole.