View on
MetaCPAN
David Schmidt > CatalystX-Resource-0.02 > CatalystX::Resource::TraitFor::Controller::Resource::Form

Download:
CatalystX-Resource-0.02.tar.gz

Dependencies

Annotate this POD

Website

View/Report Bugs
Module Version: 0.02   Source  

NAME ^

CatalystX::Resource::TraitFor::Controller::Resource::Form - handles form related stuff

VERSION ^

version 0.02

ATTRIBUTES ^

form_class

HTML::FormHandler class to use for this resource.

e.g.: 'MyApp::Form::Resources'

form_template

template file for HTML::FormHandler

optional, if you don't supply a form_template a stringified version will be used

METHODS ^

form

handle form validation, configuration of visible fields and setting of notification messages

Catalyst stash variables ^

form_attrs_new

you can pass attributes to $form->new via $c->stash->{form_attrs_new}

  $c->stash->{form_attrs_new} = { #... };

form_attrs_process

you can pass attributes to $form->process via $c->stash->{form_attrs_process}

  $c->stash->{form_attrs_process} = { posted => 0 };

AUTHOR ^

David Schmidt <davewood@cpan.org>

COPYRIGHT AND LICENSE ^

This software is copyright (c) 2011 by David Schmidt.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.

syntax highlighting: