No such thing as a small change | |
PerlMonks |
Re^2: Catalyst - components from other namespaceby roman (Monk) |
on Mar 17, 2011 at 19:28 UTC ( [id://893840]=note: print w/replies, xml ) | Need Help?? |
It seems that CatalystX::InjectComponent does what I need. I have two applications sharing quite a lot of codebase (they are actually two interfaces to one backend). They have many common actions, they use same DBIx::Class::Model, they both render their output via Mason with same configuration. Of course I could create OurApp::Controller::* and inherited it by MyApp::Controller::* and YourApp::Controller::*, but it just triples the number of files.
In Section
Seekers of Perl Wisdom
|
|