GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
Catalyst::Helper::Controller::Scaffold(3) User Contributed Perl Documentation Catalyst::Helper::Controller::Scaffold(3)

Catalyst::Helper::Controller::Scaffold - Helper for Scaffolding

    # 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 CDBI::SomeTable

Helper for Scaffolding.

Templates are TT so you'll need a TT View Component and a forward in your end action too. This can be accomplished with Catalyst::Plugin::DefaultEnd.

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.

mk_compclass

Sebastian Riedel

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

[% class %] - Scaffolding Controller Component

See "[% app %]"

Scaffolding Controller Component.

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 %]

This library is free software . You can redistribute it and/or modify it under the same terms as perl itself.
2005-12-04 perl v5.32.1

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.