Catalyst::Model::CDBI::CRUD3pm
Crud cdbi model class
Usage
# lib/MyApp/Model/CDBI.pmpackage MyApp::Model::CDBI;use base 'Catalyst::Model::CDBI::CRUD';__PACKAGE__->config(dsn => 'dbi:SQLite2:/tmp/myapp.db',relationships => 1);1;# lib/MyApp.pmpackage MyApp;use Catalyst 'FormValidator';__PACKAGE__->config(name => 'My Application',root => '/home/joeuser/myapp/root');sub table : Global {my ( $self, $c ) = @_;$c->form( optional => [ MyApp::Model::CDBI::Table->columns] ); #see Data::FormValidator$c->forward('MyApp::Model::CDBI::Table');}sub end : Private {$c->forward('MyApp::V::TT');}1;
Overview
This is a subclass of "Catalyst::Model::CDBI" with additional CRUD methods. Don't forget to copy the base templates to config->root!
*NOTE* This module has been deprecated. See BUGS section below!
Methods
add
Does nothing by default.
destroy
Deletes a Class::DBI object.
do_add
Creates a new Class::DBI object from $c->form.
do_edit
Updates a Class::DBI object from $c->form.
edit
Does nothing by default.
list
Does nothing by default.
process
Dispatches CRUD request to methods.
view
Does nothing by default.
Releases
10 releases since Debian 4.0 (Etch); the text changed 4 times.