Welcome Guest, Not a member yet? Register   Sign In
Extending with customer specific files
#1

[eluser]Jocke[/eluser]
Hello,

I've tried to search but didn't really find a solution that I can use so I try to explain it here and hope someone will have a solution or can point me in the right direction.

I have a application that is used by some customers. Some customers have there own folder with this application with some adaptations. This is fine but to easier update the customers whith adaptations version of the application I would like to extend the loader I believe to look at one more folder for specific files (keeping the customized files in one folder outside of the application so I can update the core of my application without harming the customized files or having to diff-merge it).

Example of structure:
/system
/myapplication
... /application
......./controllers
........../main.php
...../views
.....and so on
/customer1
... /application <--- exact copy of /myapplication/application
... /adaptation <--- here I would like to store customer specific files
......./extended_main.php <--- extended version of main.php

So how can I achieve this? If there is a customer specific version of a file (controller, helper, view, model) it gets loaded? Exactly like when I'm extending the core with MY_ files I would hope there is a way to do the same thing with once more with customer files.

Thanks in advanced! :-)


Messages In This Thread
Extending with customer specific files - by El Forum - 05-13-2011, 05:59 AM
Extending with customer specific files - by El Forum - 05-13-2011, 07:07 AM



Theme © iAndrew 2016 - Forum software by © MyBB