There's probably something obvious I'm completely missing, but can someone 
explain (or point me at the right place to RTFM, as I can't find it) why this 
works:

        package MySite::Controller::Profile;
        use parent qw(MySite::Controller::Base 
Catalyst::Controller::HTML::FormFu );

but this:

        package MySite::Controller::Profile;
        use parent qw(Catalyst::Controller::HTML::FormFu 
MySite::Controller::Base);

fails to process forms at all ($c->stash->{form} is empty).

where MySite::Controller::Base, just provides a couple of utility functions.

Also if MySite::Controller::Base inherits from 
Catalyst::Controller::HTML::FormFu, and MySite::Controller::Profile just 
inherits from MS::C::Base, I get this same effect (no forms).


Now, it's not a problem to put C::C::HTML::FormFu at the end of the leaf 
class, I'm just curious as to why I have to.

Using Moose and extends instead of "use parent" has the same effect.

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

Reply via email to