Think about Loose Coupling | |
PerlMonks |
Catalyst - components from other namespaceby roman (Monk) |
on Mar 17, 2011 at 16:29 UTC ( [id://893805]=perlquestion: print w/replies, xml ) | Need Help?? |
roman has asked for the wisdom of the Perl Monks concerning the following question: Dear monks, is there a sane way how to make Catalyst application use controllers, views or models from other namespace? Imagine MyApp, YourApp applications which want to use OurApp::Controller::Request, OurApp::View::Mason, OurApp::Model::Customer components. I can easily load the components:
But I would also like the loaded components to be reached via $c->view('Mason'), $c->model('Customer::Request'), $c->controller('Request') and let the Mason view be the default one. Has anyone dealt with a similar situation? I appreciate any advice.
Back to
Seekers of Perl Wisdom
|
|