Design Logic Help Requested |
You don't need to nest the applications within one directory, it's just one possible option. You just need to make sure all of the paths in each application's index.php file point to the correct directories (you can even have multiple CI installations, if necessary, though that should be a rare requirement), and you can move your index.php file, too (for instance, into a public directory).
Personally, I use some extensions on top of CI (Bonfire: https://github.com/ci-bonfire/Bonfire ), so my directory structure looks something like this: - application - bonfire - /ci3 - public - /index.php I have some other directories for Composer and may not use exactly those names, but this is more or less the way it's structured. The important part is that the paths in that index.php file point to the right place, which lets you put your system, application, and views just about anywhere you'd like. I'm considering separating some of my existing applications into their own application directories, which might look something like this: - application - another_application - app_three - bonfire - /ci3 - public - /index.php - public2 - /index.php - public3 - /index.php The reason my system directory is named "ci3" instead of "codeigniter" or "system" is because my site was originally built on v2.x of CodeIgniter, so, for some period of time I had a "codeigniter" directory, which held the CI2 system directory, and two sites using a shared application directory, but separate system and public directories, so I could test my changes until the site was completely functional in v3. So, the system is relatively flexible, it's usually just a matter of checking your work. |
Welcome Guest, Not a member yet? Register Sign In |