How to make CI codebase work in 3 sub-domain? |
Hi,
I'm newbie in Codeigniter, how to make CI framework woking in deffrent subdomain???
This is me. JK not me.
- sub-domain
-- index.php ---- application ---- system What did you Try? What did you Get? What did you Expect?
Joined CodeIgniter Community 2009. ( Skype: insitfx )
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.
(09-28-2016, 07:14 AM)rtenny Wrote:Thanks, i will try.(09-27-2016, 11:52 PM)falcon812311 Wrote: Hi,
This is me. JK not me.
|
Welcome Guest, Not a member yet? Register Sign In |