CatalystX::Resource::Controller::Resource - Base Controller for Resources
required, the DBIC model associated with this resource. (e.g.: 'DB::CDs')
ArrayRef of column names used as name in messages.
if you edit, delete, ... a resource a msg is stored in the stash. the first candidate available as accessor on the resoure (tested with $row->can(...)) that returns a defined value will be used.
example: "'Michael Jackson' has been deleted.", "'Artist (id: 3)' has been updated."
default: [ 'name', 'title' ]
if no identifier is found resource_key is used
stash key used to store the resultset of this resource. (e.g.: 'albums')
stash key used to store specific result of this resource. (e.g.: 'album') You will need this to access your resource in your template.
for a nested resource 'parent_key' is used as stash key to store the parent item (e.g.: 'artist') this is required if parent_key is set
the accessor on the parent resource to get a resultset of this resource (accessor in DBIC has_many) (e.g.: 'albums') this is required if parent_key is set
The prefetch attribute value is passed through. See DBIx::Class::ResultSet for details. (e.g.: 'tracks', [qw/tracks credits/])
After a created/edit/delete action a redirect takes place. The redirect behavior can be controlled with the redirect_mode attribute.
default = 'list'
documented in CatalystX::Resource
redirect request after create/edit/delete
returns notification msg to be displayed
return an identifier for the resource
the following actions will be loaded
Starts a chain and puts resultset into stash
For nested resources chain childrens 'base' action to parents 'base_with_id' action
chains to 'base' and puts resource with id into stash
David Schmidt <firstname.lastname@example.org>
This software is copyright (c) 2011 by David Schmidt.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.