Bird87 ZA
Bird87 ZA

Reputation: 2160

One Controller for multiple apps

I have written a tool with cakePHP that will make government departments management of entities much easier.

What I want to know is, is it possible to have many apps running off this one system? What I am asking is, if we have 5 different departments, we will have 5 different apps. Will it be possible for me to, if I make changes to one Controller, I can upload it so that it affects all 5 apps at once? Or is this impossible?

Upvotes: 0

Views: 45

Answers (1)

floriank
floriank

Reputation: 25698

Make this submodule of the app for managing the departments entities a plugin.

Then use composer or gits submodule feature to update the different apps. The advantage here is you can set each app to a specific commit id. If you blindly update all apps at once it is likely that one of them might break. I would not do that.

If you really want to do it you can simply check the plugin out somewhere on the server and symlink it to all your apps.

Upvotes: 1

Related Questions