The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Catalyst::Helper::Controller::Scaffold::HTML::Template - Helper for Scaffolding using HTML::Template. This module is heavily based on Catalyst::Helper::Controller::Scaffold.

SYNOPSIS

    # Imagine you want to generate a scaffolding controller MyApp::C::SomeTable
    # for a CDBI table class MyApp::M::CDBI::SomeTable
    script/myapp_create.pl controller SomeTable Scaffold::HTML::Template CDBI::SomeTable

DESCRIPTION

Helper for Scaffolding.

Templates are HTML::Template so you'll need a HTML::Template View Component and a forward in your end action too.

Note that you have to add these lines to your CDBI class...

    use Class::DBI::AsForm;
    use Class::DBI::FromForm;

...and these to your application class, to load the FormValidator plugin.

    use Catalyst qw/FormValidator/;

METHODS

mk_compclass

AUTHOR

Sebastian Riedel, Arnaud Assad

LICENSE

This library is free software . You can redistribute it and/or modify it under the same terms as perl itself.

NAME

[% class %] - Scaffolding Controller Component

SYNOPSIS

See "[% app %]"

DESCRIPTION

Scaffolding Controller Component.

METHODS

add

Sets a template.

default

Forwards to list.

destroy

Destroys a row and forwards to list.

do_add

Adds a new row to the table and forwards to list.

do_edit

Edits a row and forwards to edit.

edit

Sets a template.

list

Sets a template.

view

Fetches a row and sets a template.

AUTHOR

[% author %]

LICENSE

This library is free software . You can redistribute it and/or modify it under the same terms as perl itself.