I have the same app (made in CodeIgniter) running on the same server for three different clients.
The app is mostly the same, but each client has its own modifications (and its own subdomain), but right now any time I have to do a general modification I have to go through the app of all three clients and perform the modification.
What I want to have is:
The app deployed only once, and some kind of control there if you go to
client1.example.com/method1
The app looks for method1 in the controller client1.php, if method1 is found, it loads that instead, else, look for method1 in the controller default.php
That way, I can have general methods for all the clients load from the same source, and then specific controller for each client with their specific methods.
P.S. The methods are basically the same, but the different needs of the clients require to be able to make big modifications to each one.
Any help would be appreciated.
EDIT:
Ok, let me try to be more clear.
In wiredesignz Modular Extensions - HMVC, when you call index.php/welcome, it looks for it in the default controller. When you load a module and call index.php/welcome, it looks for it in the module directory first, if it's not found, will default to the default controller.
How can I achieve this without the module functionality?