How to make CI codebase work in 3 sub-domain? |
09-28-2016, 07:14 AM
(This post was last modified: 09-28-2016, 07:20 AM by rtenny. Edit Reason: Made folder structure clearer ) (09-27-2016, 11:52 PM)falcon812311 Wrote: Hi, rather then multiplying the /systems folder I do this Lets assume you have the website in /home/user/domain you add these folders /home/user/domain/application_sub1 /home/user/domain/application_sub2 /home/user/domain/application_sub3 /home/user/domain/system /home/user/domain/public_html /home/user/domain/public_html/sub1 /home/user/domain/public_html/sub2 /home/user/domain/public_html/sub3 This way you have the controller and views separated and still only use one system base. When you upgrade CI you just need to copy one /system folder you also need to change the index.php in each of the public_html folders /public_html $system_path = '../system'; $application_folder = '../application'; /public_html/sub1 $system_path = '../../system'; $application_folder = '../../application_sub1'; etc.. Hope this helps
On the package it said needs Windows 7 or better. So I installed Linux.
|
Messages In This Thread |
How to make CI codebase work in 3 sub-domain? - by falcon812311 - 09-27-2016, 11:52 PM
RE: How to make CI codebase work in 3 sub-domain? - by InsiteFX - 09-28-2016, 02:41 AM
RE: How to make CI codebase work in 3 sub-domain? - by falcon812311 - 09-28-2016, 04:44 AM
RE: How to make CI codebase work in 3 sub-domain? - by rtenny - 09-28-2016, 07:14 AM
RE: How to make CI codebase work in 3 sub-domain? - by falcon812311 - 10-03-2016, 07:35 AM
|