Welcome Guest, Not a member yet? Register   Sign In
Design Logic Help Requested
#18

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.
Reply


Messages In This Thread
Design Logic Help Requested - by mwebdesign - 07-12-2016, 11:27 PM
RE: Design Logic Help Requested - by InsiteFX - 07-13-2016, 10:11 AM
RE: Design Logic Help Requested - by cartalot - 07-13-2016, 11:09 AM
RE: Design Logic Help Requested - by mwebdesign - 07-13-2016, 11:25 AM
RE: Design Logic Help Requested - by mwebdesign - 07-13-2016, 01:00 PM
RE: Design Logic Help Requested - by cartalot - 07-13-2016, 03:52 PM
RE: Design Logic Help Requested - by mwebdesign - 07-13-2016, 05:22 PM
RE: Design Logic Help Requested - by mwebdesign - 07-13-2016, 06:58 PM
RE: Design Logic Help Requested - by cartalot - 07-14-2016, 11:20 AM
RE: Design Logic Help Requested - by mwebdesign - 07-13-2016, 12:03 PM
RE: Design Logic Help Requested - by PaulD - 07-13-2016, 01:01 PM
RE: Design Logic Help Requested - by mwebdesign - 07-13-2016, 04:42 PM
RE: Design Logic Help Requested - by mwebdesign - 07-20-2016, 07:10 PM
RE: Design Logic Help Requested - by mwebdesign - 07-13-2016, 05:11 PM
RE: Design Logic Help Requested - by mwebdesign - 07-13-2016, 05:12 PM
RE: Design Logic Help Requested - by PaulD - 07-13-2016, 03:09 PM
RE: Design Logic Help Requested - by InsiteFX - 07-13-2016, 07:05 PM
RE: Design Logic Help Requested - by mwhitney - 07-14-2016, 10:48 AM
RE: Design Logic Help Requested - by PaulD - 07-21-2016, 03:04 AM



Theme © iAndrew 2016 - Forum software by © MyBB