Hello list,

I need to put all DBIC Operations in an action into a transaction and
thought the use of

http://search.cpan.org/~druoso/Catalyst-Controller-DBIC-Transaction-0.3/lib/Catalyst/Controller/DBIC/Transaction.pm

would be a good idea, but ever since I added  C::C::DBIC::Controller
with "use parent" FormFu doesnt work anymore.

 use parent qw/
            Catalyst::Controller::DBIC::Transaction
            Catalyst::Controller::HTML::FormFu
            /;

sub create :Path('create') :Args(0) :FormConfig('accounts/create.yml')
:DBICTransaction('myDB') {
    my ( $self, $c ) = @_;
    my $form = $c->stash->{form};
    if ($form->submitted_and_valid) {
    ...
}

The error message basically says:

Can't call method "submitted_and_valid" on an undefined value at
/home/david/temp/catalyst/nolabel2/Nolabel2/script/../lib/Nolabel2/Controller/Accounts.pm
line 41.
 at /usr/local/share/perl/5.8.8/DBIx/Class/Schema.pm line 954

Any help is greatly appreciated

david


-- 
David Schmidt   |   http://www.fm5.at

_______________________________________________
List: [email protected]
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/[email protected]/
Dev site: http://dev.catalyst.perl.org/

Reply via email to