Красимир Беров > CGI-Ex-Recipes > CGI::Ex::Recipes::Add

Download:
CGI-Ex-Recipes-0.08.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Module Version: 0.001   Source  

NAME ^

CGI::Ex::Recipes::Add - Implements the creation of a new recipe!

VERSION ^

Version 0.02

SYNOPSIS ^

Perhaps a little code snippet.

    sub skip { 0 }
    sub name_step { 'edit' }
    ...

METHODS ^

See the general documentations for these methods in CGI::Ex::App

skip

name_step

Returns edit in order the edit.tthtml template to be used

finalize

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.

AUTHOR ^

Красимир Беров, <k.berov at gmail.com>

BUGS ^

Not known

SUPPORT ^

    perldoc CGI::Ex::Recipes

COPYRIGHT & LICENSE ^

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.

syntax highlighting: