[html-formfu] inheritance question
Malcolm
mjh-formfu at liminalflux.net
Sun Feb 22 22:15:23 GMT 2009
On Sunday 22 February 2009, Malcolm wrote:
> 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).
Though it would probably help if I got my examples the correct way around.
package MySite::Controller::Profile;
use parent qw(Catalyst::Controller::HTML::FormFu MySite::Controller::Base);
works.
package MySite::Controller::Profile;
use parent qw(MySite::Controller::Base Catalyst::Controller::HTML::FormFu);
does not.
More information about the HTML-FormFu
mailing list