Welcome Guest, Not a member yet? Register   Sign In
MUlti sites on one copy of CI
#1

[eluser]R_Nelson[/eluser]
if i have say 3 sites like apps.mysite.com www.mysite.com and admin.mysite.com is there a way to run all 3 with 1 copy of CI so i can share the controllers or do i need to have 3 separate and copy them over?
#2

[eluser]theprodigy[/eluser]
you can point each of the index files to the same application and system directories, but each site would have access to ALL of the same controllers.
#3

[eluser]R_Nelson[/eluser]
that is kinda what i thought i know with Ruby it is possible but i don't feel like learning a new language when CI dose almost everything ruby on rails dose.
#4

[eluser]theprodigy[/eluser]
you can possibly use a HMVC setup, and just set your modules out where each site can access them. Then just have your code use whatever modules it wants, but technically, each site will still have access to all the modules.

Depending on how your server is setup, you may be able to use symlinks. Let one controller be a symlink to a controller in one of the other sites.




Theme © iAndrew 2016 - Forum software by © MyBB