App::Manoc::ControllerRole::CommonCRUD - Controller role for Manoc CRUD
version 2.99.2
Catalyst controller role for Manoc common CRUD implementation.
Create a new object using a form. Chained to base.
Display a list of items.
Display a single items.
Use a form to edit a row.
Delete the object using its delete method.
delete
Default is the view action in current namespace.
Default is the list action in current namespace.
package App::Manoc::Controller::Artist; use Moose; extends "Catalyst::Controller"; with "App::Manoc::ControllerRole::CommonCRUD"; __PACKAGE__->config( # define PathPart action => { setup => { PathPart => 'artist', } }, class => 'ManocDB::Artist', form_class => 'App::Manoc::Form::Artist', ); __PACKAGE__->meta->make_immutable; no Moose; 1;
* App::Manoc::ControllerRole::ResultSet * App::Manoc::ControllerRole::ObjectForm * App::Manoc::ControllerRole::ObjectList
Gabriele Mambrini <gmambro@cpan.org>
Enrico Liguori
This software is copyright (c) 2017 by Gabriele Mambrini.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install App::Manoc, copy and paste the appropriate command in to your terminal.
cpanm
cpanm App::Manoc
CPAN shell
perl -MCPAN -e shell install App::Manoc
For more information on module installation, please visit the detailed CPAN module installation guide.