Hello,
Part of the ValidateRM docs suggest setting up your DFV defaults in your
base class.
For example:
sub cgiapp_init {
my $self = shift;
# Set some defaults for DFV unless they already exist.
$self->param('dfv_defaults') ||
$self->param('dfv_defaults', {
missing_optional_valid => 1,
filters => 'trim',
msgs => {
any_errors => 'err__',
prefix => 'err_',
invalid => 'Invalid',
missing => 'Missing',
format => '<span class="dfv-errors">%s</span>',
},
});
}
Would you like ValidateRM to have an option to just go ahead and load
these defaults for you?
It might look like:
use CGI::Application::Plugin::ValidateRM (qw/-add_dfv_defaults/);
And then the above defaults would be used. I see this being useful for
new users who want a quick start, and for other people who agree with
the defaults, I like. :)
Mark
--
http://mark.stosberg.com/
---------------------------------------------------------------------
Web Archive: http://www.mail-archive.com/suppressed/
http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2
To unsubscribe, e-mail: suppressed
For additional commands, e-mail: suppressed
Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.