How to install more than 2 applications in one /system |
[eluser]Shiju S S[/eluser]
I have : four applications: How can i setup the index.php and config.php files quickbharath/applications/ admin exeuser user front Please help me.
[eluser]porquero[/eluser]
I found two ways to work with different applications in CI. A) You can use the configuration recomended in the tutorial and get like some this: http://ellislab.com/codeigniter/user-gui..._apps.html /system -/apps --/app1 --/app2 --/appN /app1.php /app2.php /appN.php Advantages * Clearly apps separated * Easy to move/copy apps Disadvantages * Duplicate code * One config for each app * Is not friendly url B) Or, if you are working in the same configuration, maybe you wan't modify each configuration file or create one loader for each app. So you can use controllers directory to separate your apps: /system /application -/controllers --/app1 --/app2 --/appN /views -/app1 --/controller1..N.php ---/view1..N.php /Models -/app1 --/controller1..N ---/model1..N.php -/app2 -/appN /index.php Advantages * Only one config file * Fast navigation in file system * Use Don't repeat yourself Disadvantages * Possibles collitions for personalized CI elements (MY_helper, MY_library) * Path to call views long ($this->load->view('app1/controller1/view1') ![]() ___ I prefeer B solution ![]() I hope that help you. |
Welcome Guest, Not a member yet? Register Sign In |