[html-formfu] What is the correct approach

Carl Franks fireartist at gmail.com
Tue Sep 16 11:02:00 BST 2008


2008/9/15 Dermot <paikkos at googlemail.com>:
> Hi,
>
> I have been using FormFu in a Catyalst environment and suspect I might
> be using the correct wrong modules.
>
> I am using DBIx::Class and have a schema for users.
>
> I have been using
>
>
> use base qw(Catalyst::Controller::HTML::FormFu);
> ...
> ..
> sub edit : Local :FormConfig('users/edit.yml') {
>   my ($self, $c, $id) = @_;
>   my $user = $c->model('MotionDB::Users')->update_or_create($id);
>   if ($form->submitted_and_valid) {
>        $form->model->update($user);
>  }
> ..
> ..
> }
>
> I know there are issues with the above because I was in the process of
> correcting them but what I am confused about is should I be using
> Catalyst::Controller::HTML::FormFu or Catalyst::Model::FormFu

I've only ever used Catalyst-Controller-HTML-FormFu, so I can't really
comment on Catalyst-Model-FormFu.

> They seems to behave quite differently and the above gives me a
> serious error when I start up the app.
>
> Can someone give me some guidance?

What error messages do you get?

Carl



More information about the HTML-FormFu mailing list