Welcome Guest, Not a member yet? Register   Sign In
Using CodeIgniter to support an 'application' under an existing site
#2

[eluser]gtech[/eluser]
CI can easily live in subfolders.. everything is accessed from the index.php in the root directory of the CI folder. If you move everything into a subfolder, including the index.php it will work so long as you update the baseurl in ../system/application/config/config.php

so in your example you can rename the CI folder to interlock.. and copy it into your webserver path and you can access it through the webbrowser as follows.

http://<machine ip>/interlock/index.php/<controller>/<function>/<param>

Then you would change the baseurl in config.php

Code:
$config['base_url']    = "http://<machine ip>/interlock";
obviously changing whats inbetween the <> brackets.

you can have as many CI installations as you want in the webserver path, as long as the base url is updated in every subfolder.

does that answer your question, or have I minsunderstood what you are asking?


Messages In This Thread
Using CodeIgniter to support an 'application' under an existing site - by El Forum - 06-08-2009, 11:48 AM



Theme © iAndrew 2016 - Forum software by © MyBB