GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
Catalyst::Plugin::FormValidator(3) User Contributed Perl Documentation Catalyst::Plugin::FormValidator(3)

Override Catalyst's prepare

$c->form object

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

    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.

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.

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.

Catalyst, Data::FormValidator

Sebastian Riedel, "sri@cpan.org"

Devin Austin "(dhoss@cpan.org)"

This program is free software, you can redistribute it and/or modify it under the same terms as Perl itself.
2010-03-01 perl v5.32.1

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.