On 31/05/07, chylli <[EMAIL PROTECTED]> 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

_______________________________________________
HTML-FormFu mailing list
HTML-FormFu@lists.scsys.co.uk
http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/html-formfu

Reply via email to