Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re^2: Catalyst - components from other namespace

by roman (Monk)
on Mar 17, 2011 at 19:28 UTC ( [id://893840]=note: print w/replies, xml ) Need Help??


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.

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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://893840]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (7)
As of 2024-03-28 22:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found