Multiple applications on single CI install - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: Multiple applications on single CI install (/showthread.php?tid=14737) |
Multiple applications on single CI install - El Forum - 01-13-2009 [eluser]Unknown[/eluser] I've been fiddling around with the idea of setting up a site with multiple apps. I.e., I'd have a 'Main' app, a 'blog' app, 'forum', and so on. Each app would have its own controllers, models, and libraries, as well as access to global libraries & models directories. Directory structure is currently like this: Code: root Now, everything is setup this way and works fine, except that I need a way for codeigniter to recognize that when a user types in www.domain.com/blog or /forum, it switches apps. Is this possible? Edit: I should also clarify just in case, the htdocs folder and subfolders are the only publicly accessible folders. Everything else is below the webroot for security reasons. Multiple applications on single CI install - El Forum - 01-14-2009 [eluser]Phil Sturgeon[/eluser] Why not just use Matchbox? It is doing essentially what you have here, but means you don't need to set up a new application for each new section you make, and makes loading your global resources, etc much easier. |