Welcome Guest, Not a member yet? Register   Sign In
Handing Multiple Sites
#1

[eluser]Insa[/eluser]
I'm trying to run multiple applications with CI, a site and an admin section for said site.

I have 2 application folders: 'application/site' and 'application/admin', and I would like them to be accessed on site.com and site.com/admin.

the article in the user guide about this helped me get the 'site' part working properly, but it wasn't clear on what to do for the 'admin' app.

The problem I'm having is that I'm unsure where to put the index.php file for admin. I can't make a directory 'admin' and place the index file in there, because if I go to site.com/admin, CI will look at 'site/controllers/admin.php' instead of where I want it to look.
I also tried renaming index.php to admin.php and putting it 'site/controller's, but all I got was error messages because it tried to define statics etc etc twice.

How do you guys handle this problem? I've been struggling with it for the past few hours, and as I can't figure it out myself I figured I'd give these forums a try.

Thanks in advance!


Messages In This Thread
Handing Multiple Sites - by El Forum - 05-27-2010, 09:53 AM
Handing Multiple Sites - by El Forum - 05-27-2010, 11:02 AM
Handing Multiple Sites - by El Forum - 05-27-2010, 01:00 PM
Handing Multiple Sites - by El Forum - 05-27-2010, 01:45 PM
Handing Multiple Sites - by El Forum - 05-27-2010, 02:11 PM
Handing Multiple Sites - by El Forum - 05-27-2010, 03:06 PM
Handing Multiple Sites - by El Forum - 02-25-2011, 01:39 AM
Handing Multiple Sites - by El Forum - 02-25-2011, 07:03 AM
Handing Multiple Sites - by El Forum - 02-25-2011, 08:11 AM



Theme © iAndrew 2016 - Forum software by © MyBB