[Catalyst] Base controllers and multiple inheritance

Peter Karman peter at peknet.com
Thu Mar 6 21:15:45 GMT 2008



Byron Young wrote on 3/6/08 12:31 PM:

> $class->NEXT::new() doesn't do the right thing with this crazy
> diamond-ish inheritance I have, and I think using Class::C3 in my base
> classes while Catalyst::Controller and C::C::HTML::FormFu use NEXT is
> causing some problems.  

You might try the C::Plugin::C3 as well. IIRC, I had to do that when I mixed 
NEXT-based controllers with C3-based controllers. The plugin overrides NEXT to 
make it Just Work.



> As an aside -- I wish I had seen your CatalystX::CRUD::Controller
> before!  I actually based mine off of your C::C::Rose::CRUD but wanted
> to use DBIC and C::C::HTML::FormFu, so I made my own.  Anyway, kudos!
> 

Consider contributing a CX::CRUD::Controller::FormFu then! :) If you based yours 
off the Rose::CRUD API, you're mostly there.

-- 
Peter Karman  .  http://peknet.com/  .  peter at peknet.com



More information about the Catalyst mailing list