[html-formfu] What is the correct approach

Dermot paikkos at googlemail.com
Mon Sep 15 17:34:10 BST 2008


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

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?
Thanx,
Dp.



More information about the HTML-FormFu mailing list