CodeIgniter Directory Structure Suggestions

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
buckit
Forum Contributor
Posts: 169
Joined: Fri Jan 01, 2010 10:21 am

CodeIgniter Directory Structure Suggestions

Post by buckit »

So I am about to dive into CodeIgniter and have been reading about people changing the directory layout. Some people prefer the application folder to be separated out from the 'core' functions... seems some have even moved the core functions outside of the web root?

anyway... just thought I would ask what others on this forum are doing... mainly out of pure curiosity.
User avatar
VladSun
DevNet Master
Posts: 4313
Joined: Wed Jun 27, 2007 9:44 am
Location: Sofia, Bulgaria

Re: CodeIgniter Directory Structure Suggestions

Post by VladSun »

I do the same thing, mainly because it's the place CI directory should be (I mean outside the web root), because I have several web applications (sites/domains) using it and finally because it's easier to update/modify CI in a single directory.
There are 10 types of people in this world, those who understand binary and those who don't
buckit
Forum Contributor
Posts: 169
Joined: Fri Jan 01, 2010 10:21 am

Re: CodeIgniter Directory Structure Suggestions

Post by buckit »

yeah... am wondering if I should restructure my apache server..

right now I have
[text] /websites
whatever.com
index.php[/text]

am thinking I should go to
[text] /websites
ci_core
whatever.com
ci_app
public_html
index.php
stuff.com
ci_app
public_html
index.php[/text]
Post Reply