Override Catalyst's prepare
Catalyst::Plugin::FormValidator - Data::FormValidator plugin for Catalyst.
use Catalyst 'FormValidator';
$c->form( optional => ['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.
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.
Merge values with FormValidator.
$c->form( required => ['yada'] );
Returns a Data::FormValidator::Results object.
The actual parameters sent to $c->form are the same as the profile in Data::FormValidator's check function.
Sebastian Riedel, email@example.com
Devin Austin (firstname.lastname@example.org)
This program is free software, you can redistribute it and/or modify it under the same terms as Perl itself.
To install Catalyst::Plugin::FormValidator, copy and paste the appropriate command in to your terminal.
perl -MCPAN -e shell
For more information on module installation, please visit the detailed CPAN module installation guide.