[html-formfu] How to write yml to confirm whether a record is in
db?
Carl Franks
fireartist at gmail.com
Fri Jun 1 08:56:00 GMT 2007
On 31/05/07, chylli <lchangying at gmail.com> wrote:
> Maybe I should put code to a custom module like
> MyApp::Validator::User. But I don't know how to get $c in that
> module. It seems like validator or constraint module only get two
> arguments, $self and $value.
If you're using Catalyst::Controller::HTML::FormFu, you can access $c
in a validator via
$self->form->stash->{context}
Carl
More information about the HTML-FormFu
mailing list