![]() |
Hello - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21) +--- Thread: Hello (/showthread.php?tid=37350) |
Hello - El Forum - 01-06-2011 [eluser]paulipv[/eluser] Using: CI (v. 2.0) I'm not sure if that question has been discussed but i wanna know if posible to use multiple applications and 1 base config. For example: app/ config/ core/ libaries/ etc/ admin_app controllers/ models/ store_app controllers/ models/ Why that? Lets say we want a big application folder where we can extend core libraries. - We want to create a base controller that handle some actions for both applications. - In admin_app we create our admin controller that extend base controller and set admin application settings only. Ex: Code: Base_Controller extends CI_Controller { (admin) Code: Admin_Controller extends Base_Controller { - We want to create models that can be available for both application (admin/store). etc, etc. AND ... If we define for example in admin application config/database.php config will be rewrited (database connection for this application will be app/admin/config/database instead of /app/config/database.php I know that is not posible at the moment, however with that CodeIgniter in my opinion comes more and more flexible. Maybe in future version with our suggestions or maybe help we can implement that ![]() For example doing that in Front Controller: Code: $myApps = array( Example controller: Code: class Cart extends Store_Controller { |