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.: 'cds_rs')
stash key used to store all results of this resource. (e.g.: 'tracks') You will need this to access a list of your resources in your template.
stash key used to store specific result of this resource. (e.g.: 'track') 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.: 'cd') 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.: 'tracks') this is required if parent_key is set
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 <email@example.com>
This software is copyright (c) 2011 by David Schmidt.