Catalyst::Plugin::FormValidator::Simple::Messages::Nihongo - mod_perl上での複数のCatalystアプリケーションでFVS::Simpleを利用可能にする
use Catalyst qw/ : FormValidator::Simple::Messages : /;
mod_perl上で複数のCatalystアプリケーションを走らせる場合、C::P::FormValidator::Simpleのメッセージの値がサーバーで共通のものになってしまいます。
それを回避するためにformメソッドに引数が渡された場合、もしくはset_invalid_formメソッドが呼ばれた場合にメッセージを設定し直すようにします。
1つのCatalystアプリケーションしか走らせないケースでは今まで通りC::P::FormValidator::Simpleを使うのが良いかと思います。
宮崎 一徹 <ittetsu.miyazaki@gmail.com>
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
Catalyst::Plugin::FormValidator::Simple
To install Catalyst::Plugin::FormValidator::Simple::Messages, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Catalyst::Plugin::FormValidator::Simple::Messages
CPAN shell
perl -MCPAN -e shell install Catalyst::Plugin::FormValidator::Simple::Messages
For more information on module installation, please visit the detailed CPAN module installation guide.