NAME
Catalyst::Helper::Controller::ADVEL - Helper for Support Multi Class ADVEL for One Page (Scaffolding)
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 ADVEL::Multi CDBI::SomeTable
DESCRIPTION
Helper for Support Multi Class ADVEL for One Page (Scaffolding).
Templates area TT so you'll need a TT View Component and 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;
for Catalyst::Model::CDBI you can do that by adding this
additional_base_classes => [qw/Class::DBI::AsForm Class::DBI::FromForm/],
to the component config. Also, change your application class like this:
use Catalyst qw/-Debug FormValidator/;
Also, note that the scaffolding uses Template::Plugin::Class, so it will be a requirement for you application as well.
This Helper's template does'nt output <HTML> tag. set PRE_PROCESS and POST_PROCESS for your Catalyst config.
ex) MyApp->config({ name => 'MyApp', root => MyApp->path_to('root');, }); =head1 METHODS
- mk_compclass
AUTHOR
Shota Takayama
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
AUTHOR
[% author %]
LICENSE
This library is free software . You can redistribute it and/or modify it under the same terms as perl itself.