Catalyst::Base - Catalyst Base Class See Catalyst Catalyst Base Class This is the base class for all Catalyst components. It is a subclass of Catalyst::Component which is the universal base class for catalyst components. This module includes handling of dispatching for controller actions.

$class->new($app, @args)
Proxies through to NEXT::new and stashes the application instance as $self->_application.

$self->action_for('name')
Returns the Catalyst::Action object (if any) for a given method name in this component.

$self->action_namespace($c)
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.

$self->path_prefix($c)
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.

$self->register_actions($c)
Finds all applicable actions for this component, creates Catalyst::Action objects (using $self->create_action) for them and registers them with $c->dispatcher.

$self->create_action(%args)
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.

$self->_application

$self->_app
Returns the application instance stored by "new()" Catalyst, Catalyst::Controller. Sebastian Riedel, "sri@cpan.org" Marcus Ramberg, "mramberg@cpan.org" Matt S Trout, "mst@shadowcatsystems.co.uk" This program is free software, you can redistribute it and/or modify it under the same terms as Perl itself.