NAME
Catalyst::Helper::Controller::Handel::Cart - Helper for Handel::Cart Controllers
SYNOPSIS
script/create.pl controller <newclass> Handel::Cart [<modelclass> <checkoutcontroller>]
script/create.pl controller Cart Handel::Cart Cart Checkout
DESCRIPTION
A Helper for creating controllers based on Handel::Cart objects. If no modelclass is specified, ::M::Cart is assumed.
Both the modelclass and checkoutcontroller arguments try to do the right thing with the names given to them.
For example, you can pass the shortened class name without the MyApp::M/C, or pass the fully qualified package name:
MyApp::M::CartModel
MyApp::Model::CartModel
CartModel
In all three cases everything before M{odel)|C(ontroller) will be stripped and the class CartModel will be used.
By default, the code generated by this helper requires Data::FormValidator 4.00 or greater to be installed for it's form validation. If you don't want to install Data::FormValidator, simply comment out this line in the generated controller class:
use Data::FormValidator 4.00;
The code is designed to work without Data::FormValidator 4.00 installed.
METHODS
mk_compclass
Makes a Handel::Cart Controller class and template files for you.
mk_comptest
Makes a Handel::Cart Controller test for you.
SEE ALSO
Catalyst::Manual, Catalyst::Helper, Handel::Cart
AUTHOR
Christopher H. Laco
CPAN ID: CLACO
claco@chrislaco.com
http://today.icantfocus.com/blog/