Devin Austin > Catalyst-Plugin-FormValidator > Catalyst::Plugin::FormValidator

Download:
Catalyst-Plugin-FormValidator-0.094.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  0
View/Report Bugs
Module Version: 0.094   Source  

prepare

Override Catalyst's prepare

form

$c->form object

NAME ^

Catalyst::Plugin::FormValidator - Data::FormValidator plugin for Catalyst.

SYNOPSIS ^

    use Catalyst 'FormValidator';

    $c->form( optional => ['rest'] );
    print $c->form->valid('rest');

Note that not only is this plugin disrecommended (as it takes over the global $c->form method, rather than being applyable in only part of your application), but Data::FormValidator itself is not recommended for use.

DESCRIPTION ^

This plugin uses Data::FormValidator to validate and set up form data from your request parameters. It's a quite thin wrapper around that module, so most of the relevant information can be found there.

EXTENDED METHODS

METHODS

form

Merge values with FormValidator.

    $c->form( required => ['yada'] );

Returns a Data::FormValidator::Results object.

    $c->form->valid('rest');

The actual parameters sent to $c->form are the same as the profile in Data::FormValidator's check function.

SEE ALSO ^

Catalyst, Data::FormValidator

AUTHOR ^

Sebastian Riedel, sri@cpan.org

CONTRIBUTORS ^

Devin Austin (dhoss@cpan.org)

COPYRIGHT ^

This program is free software, you can redistribute it and/or modify it under the same terms as Perl itself.

syntax highlighting: