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:
__PACKAGE__->config( setup_components => { search_extra => [qw(OurApp::Controller OurApp::Model OurApp::V +iew)], } );
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Catalyst - components from other namespace
by stonecolddevin (Parson) on Mar 17, 2011 at 17:43 UTC | |
by roman (Monk) on Mar 17, 2011 at 19:28 UTC | |
by stonecolddevin (Parson) on Mar 17, 2011 at 20:20 UTC |