Welcome Guest, Not a member yet? Register   Sign In
Directory Structure

Hey guys. This is my first time using a framework. Got a question regarding the directory structure.

I have a admin directory. It contains files required for the admin. All the other files are just at the root level. Where should the CI system directory be placed?

CI system folder should be on you project root, you can take application folder out from system to your project folder root no problem at all

done. any changes in the settings/config files?

should all the sub folders have the application folder?

the setup that i usually use is something like this

A CodeIgniter folder somewhere that contains everything you get when you unzip the downloaded codeigniter file.

i.e. /usr/share/CodeIgniter
this then contains 2 folders

This allows many sites on the server to use the same codeigniter core libraries
If you need to run multiple different versions of codeigniter you can

Then in the user folders but outside of the webroot for the user I have an applications folder in which I place a renamed version of the system/application folder

Then finally in the webroot you can include your index.php file, and if you are running several CI apps on the same site you can change the index.php file to something different for each app and then change the index_page in the config.php and modify your htaccess as well
/home/myuser/public_html/index.php (links to app1)
/home/myuser/public_html/app2.php (links to app2)
/home/myuser/public_html/app3.php (links to app3)

Or you can place the index.php files in separate folders if you have multiple apps as well

Theme © iAndrew 2016 - Forum software by © MyBB