[html-formfu] Dumb(?) questions on HTML::FormFu::Model::DBIC

Zbigniew Lukasiak zzbbyy at gmail.com
Thu Mar 6 10:12:41 GMT 2008


On Thu, Mar 6, 2008 at 10:55 AM, Alex Povolotsky <tarkhil at over.ru> 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



More information about the HTML-FormFu mailing list