NAME
Mango::Catalyst::Controller - Base controller for Catalyst controllers in Mango
SYNOPSIS
package MyApp::Controller::Foo;
use base 'Mango::Catalyst::Controller';
DESCRIPTION
Mango::Catalyst::Controller is the base controller class used by all Catalyst controllers in Mango. It inherits the Form and REST controllers and provides some generic methods used by all Mango controllers.
CONFIGURATION
The following configuration options are used directly by this controller:
- resource_name
-
If specified, this name will be sent to
register_as_resource
when the component is loaded.
METHODS
current_page
Returns the current page number from params or 1 if no page is specified.
entries_per_page
Returns the number of entries par page to be displayed from params or 10 if no param is specified.
register_as_resource
Registers the current class name as a resource associated with the specified name.
SEE ALSO
Mango::Catalyst::Controller::Form, Mango::Catalyst::Controller::REST
AUTHOR
Christopher H. Laco
CPAN ID: CLACO
claco@chrislaco.com
http://today.icantfocus.com/blog/