[Catalyst] Data::FormValidator
Caroline Johnston
johnston at biochemistry.ucl.ac.uk
Thu Nov 24 19:48:13 CET 2005
> I build a default input profile in MyApp.pm and import it (more or less)
> like this:
>
> sub some_sub_somewhere {
> my ( $self, $c ) = @_;
>
> my %profile = %{ $c->config->{default_dfv_profile} };
> $profile{required} = [ qw( id name notes ) ];
>
> ...
>
> }
Aaaah. That makes sense. So I set up
dfv_profile:
msgs:
format: '%s'
in myapp.yml then in my Controller, just override the bits I want like:
$c->config->{dfv_profile}->{required} = [qw(username password)];
Great. Thanks!
Cxx
More information about the Catalyst
mailing list