On Thu, Mar 6, 2008 at 10:55 AM, Alex Povolotsky <[EMAIL PROTECTED]> wrote:
> Hello!
>
>  I'm trying to implement a simple user editor (well, adder for the very
>  begin)
>
>  I've got a simple database for users and roles, and many-to-many link.
>
>  1. How should I tell HTML::FormFu which model to use for creating roles
>  checkbox set?

When you put schema on the form stash it is used as the model:

$form->stash->{schema} = $c->model( 'DBSchema' );

This is from my app.

>
>  2. Can I somehow make simple validation of password (usual two fields,
>  matching each other) using HTML::FormFu?

See HTML::FormFu::Constraint::Equal

--
Zbigniew
http://perlalchemy.blogspot.com

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

Reply via email to