Welcome Guest, Not a member yet? Register   Sign In
Adding CodeIgniter to an existing site
#3

[eluser]tonanbarbarian[/eluser]
in reality the only file needed by CI to be in your webpath is the index.php, and even that can be renamed.

For example you can rename the index.php to app.php and put it anywhere
Then just make sure that the paths are correct in the new app.php file, and that in the config.php you change the
Code:
$config['index_page'] = "app.php";
or you can change the .htaccess file and replace index.php with app.php

Personally I always only have the index.php and any external files such as image css js etc in the webpath.
I generally stick CI in one central location on the server so that all sites can use it, and then I have another common area for applications, in case I have multiple sites that need to use the same code.

Not only does this allow you to centralise your code, it improves security because the only file that is directly accessable is the index.php


Messages In This Thread
Adding CodeIgniter to an existing site - by El Forum - 01-01-2008, 12:20 PM
Adding CodeIgniter to an existing site - by El Forum - 01-01-2008, 12:56 PM
Adding CodeIgniter to an existing site - by El Forum - 01-01-2008, 01:24 PM
Adding CodeIgniter to an existing site - by El Forum - 01-01-2008, 05:02 PM
Adding CodeIgniter to an existing site - by El Forum - 02-19-2008, 10:11 AM
Adding CodeIgniter to an existing site - by El Forum - 02-19-2008, 11:37 AM
Adding CodeIgniter to an existing site - by El Forum - 02-19-2008, 11:41 AM
Adding CodeIgniter to an existing site - by El Forum - 02-19-2008, 02:42 PM



Theme © iAndrew 2016 - Forum software by © MyBB