| CGI-Ex-Recipes documentation | view source | Contained in the CGI-Ex-Recipes distribution. |
CGI::Ex::Recipes::Add - Implements the creation of a new recipe!
Version 0.02
Perhaps a little code snippet.
sub skip { 0 }
sub name_step { 'edit' }
...
See the general documentations for these methods in CGI::Ex::App
Returns edit in order the edit.tthtml template to be used
The real work is done here. First checks for abs record in the recipes table with the same title and if found adds an error to the template. Otherwise inserts the new record. See the code foreach details.
Красимир Беров, <k.berov at gmail.com>
Not known
perldoc CGI::Ex::Recipes
Copyright 2007 Красимир Беров, all rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
| CGI-Ex-Recipes documentation | view source | Contained in the CGI-Ex-Recipes distribution. |