Welcome Guest, Not a member yet? Register   Sign In
Shared resources between several applications?
#1

[eluser]Unknown[/eluser]
Hi!

I'm trying to get this kind of thing:
Code:
apps/common
          |______ controllers
          |______ libraries
          |______ views
          |______ assets (js, css, common images etc)

apps/myapp1
           |______ normal application tree

apps/myapp2
           |______ normal application tree

Basically I want to have the "common" folder as a shared repository for often used stuff so I don't have to copy&paste; code in multiple applications whenever I make changes to common components. So I need to access the stuff in common from myapp1 and myapp2. For example I'd like to load the header and footer from common but everything in the middle from myapps.

I know I can do the libraries thing with Application Packages, but it doesn't seem to support views and controllers. Is this something I can achieve with Modular Extensions or some other way? If yes, what would I put into a basic controller in myapp1 to load a view from common?




Theme © iAndrew 2016 - Forum software by © MyBB