Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Perl
tree: 0ef7a6b25f

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
lib/Catalyst/Plugin/FormValidator/Simple
t
Build.PL
Changes
LICENSE
MANIFEST
META.yml
Makefile.PL
README
Todo

README

NAME
    Catalyst::Plugin::FormValidator::Simple::Auto - Smart validation with
    FormValidator::Simple

SYNOPSIS
        use Catalyst qw/
          FormValidator::Simple
          FormValidator::Simple::Auto
          /;
        
    __PACKAGE__->config(
            validator => {
                messages => 'messages.yml',
                profiles => 'profiles.yml',
                # and other FormValidator::Simple config
            },
        );
        
    
    # profiles.yml
        action1:
          param1:
            - NOT_BLANK
            - ASCII
            - [ 'LENGTH', 4, 10 ]
          param2:
            - NOT_BLANK
        
    
    # then your action
        sub action1 : Global {
            my ($self, $c) = @_;
        
        # $c->form($profile) already executed!
            unless ($c->form->has_error) {
                ...
            }
        }

DESCRIPTION
    This plugin provide auto validation to Plugin::FormValidator::Simple.

    You can define validation profiles into config or YAML file, and no
    longer have to write it in actions.

EXTENDED METHODS
  setup
  prepare
  forward
ORIGINAL IDEA
    Daisuke Maki <dmaki@cpan.org>

AUTHOR
    Daisuke Murase <typester@cpan.org>

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

    The full text of the license can be found in the LICENSE file included
    with this module.

Something went wrong with that request. Please try again.