Catalyst::Base - Catalyst Base Class
See Catalyst
Catalyst Base Class
This is the base class for all Catalyst components. It also handles dispatch of actions for controllers.
Proxies through to NEXT::new and stashes the application instance as $self->{application}.
Returns the Catalyst::Action object (if any) for a given method name in this component.
Returns the private namespace for actions in this component. Defaults to a value from the controller name (for e.g. MyApp::Controller::Foo::Bar becomes "foo/bar") or can be overriden from the "namespace" config key.
Returns the default path prefix for :Local, :LocalRegex and relative :Path actions in this component. Defaults to the action_namespace or can be overriden from the "path" config key.
Finds all applicable actions for this component, creates Catalyst::Action objects (using $self->create_action) for them and registers them with $c->dispatcher.
Called with a hash of data to be use for construction of a new Catalyst::Action (or appropriate sub/alternative class) object.
Primarily designed for the use of register_actions.
Catalyst, Catalyst::Controller.
Sebastian Riedel, sri@cpan.org Marcus Ramberg, mramberg@cpan.org Matt S Trout, mst@shadowcatsystems.co.uk
sri@cpan.org
mramberg@cpan.org
mst@shadowcatsystems.co.uk
This program is free software, you can redistribute it and/or modify it under the same terms as Perl itself.
To install Catalyst::Runtime, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Catalyst::Runtime
CPAN shell
perl -MCPAN -e shell install Catalyst::Runtime
For more information on module installation, please visit the detailed CPAN module installation guide.