Welcome Guest, Not a member yet? Register   Sign In
How to make CI codebase work in 3 sub-domain?
#1

Hi,
I'm newbie in Codeigniter, how to make CI framework woking in deffrent subdomain???
This is me. JK not me.
Reply
#2

- sub-domain
-- index.php
---- application
---- system
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply
#3
Sad 

(09-28-2016, 02:41 AM)InsiteFX Wrote: - sub-domain
-- index.php
---- application
---- system

i'm not understand.. can you explain. Thanks.
This is me. JK not me.
Reply
#4

(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,
I'm newbie in Codeigniter, how to make CI framework woking in deffrent subdomain???

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.
Reply
#5

(09-28-2016, 07:14 AM)rtenny Wrote:
(09-27-2016, 11:52 PM)falcon812311 Wrote: Hi,
I'm newbie in Codeigniter, how to make CI framework woking in deffrent subdomain???

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
Thanks, i will try.
This is me. JK not me.
Reply




Theme © iAndrew 2016 - Forum software by © MyBB