The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

App::Manoc::ControllerRole::CommonCRUD - Controller role for Manoc CRUD

VERSION

version 2.99.2

DESCRIPTION

Catalyst controller role for Manoc common CRUD implementation.

ACTIONS

create

Create a new object using a form. Chained to base.

list

Display a list of items.

view

Display a single items.

edit

Use a form to edit a row.

delete

METHODS

delete_object

Delete the object using its delete method.

get_delete_failure_url

Default is the view action in current namespace.

get_delete_success_url

Default is the list action in current namespace.

SYNPOSYS

  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;

ROLES CONSUMED

* App::Manoc::ControllerRole::ResultSet * App::Manoc::ControllerRole::ObjectForm * App::Manoc::ControllerRole::ObjectList

AUTHORS

  • Gabriele Mambrini <gmambro@cpan.org>

  • Enrico Liguori

COPYRIGHT AND LICENSE

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.