Masahiro Chiba > FormValidator-Nested-0.07 > FormValidator::Nested

Download:
FormValidator-Nested-0.07.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Module Version: 0.07   Source  

NAME ^

FormValidator::Nested - form validation

SYNOPSIS ^

    use FormValidator::Nested;
    use Class::Param;

    my $req = Class::Param->new({ ... });
    my $fvt = FormValidator::Nested->new({
        profile_provider => FormValidator::Nested::ProfileProvider::YAML->new({
            dir => 't/var/profile',
        }),
    });
    my $res = $fvt->validate($req, 'login');
    if ( $res->has_error ) {
        my $error_param_ref = $res->error_params;
        while ( my ( $key, $error_params ) = %{$error_param_ref} ) {
            foreach my $error_param ( @{$error_params} ) {
                warn $error_param->msg;
            }
        }
    }

DESCRIPTION ^

FormValidator::Nested is form validation support nested parameter.

AUTHOR ^

Masahiro Chiba <nihen@megabbs.com>

SEE ALSO ^

LICENSE ^

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

syntax highlighting: