in reply to Re: Catalyst - components from other namespace
in thread Catalyst - components from other namespace

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.

  • Comment on Re^2: Catalyst - components from other namespace

Replies are listed 'Best First'.
Re^3: Catalyst - components from other namespace
by stonecolddevin (Parson) on Mar 17, 2011 at 20:20 UTC

    In that case I'd work on putting together an API layer over the backend and having the web apps just be layers on top of THAT that use those API calls as opposed to injecting this with that and such. It will give you a tremendously more flexible application structure.

    mtfnpy