![]() |
Modular Separation - PHP5 (Modules) - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Libraries & Helpers (https://forum.codeigniter.com/forumdisplay.php?fid=22) +--- Thread: Modular Separation - PHP5 (Modules) (/showthread.php?tid=20208) |
Modular Separation - PHP5 (Modules) - El Forum - 10-13-2009 [eluser]Phil Sturgeon[/eluser] [quote author="Phil Sturgeon" date="1255455300"]Does it support modular language files? I can't spot anything in the code that suggests it would.[/quote] /dumbass Sorry I spotted the language() and config() methods now meaning while it does support modular config and language, it does not do it the normal CodeIgniter way. I thought that was the main appeal of this library? Sadly that is the reason Matchbox has to extend so many other libraries as it tries to get ALL CodeIgniter calls to work in the same way. I'm not being a Matchbox fanboy here, I am genuinely concidering converting as right now I feel the code is cleaner. That said, I have not seen the new Matchbox yet. :-) Modular Separation - PHP5 (Modules) - El Forum - 10-13-2009 [eluser]wiredesignz[/eluser] Hey Phil, Yes it works fine if you use $load->config() instead of the $config->load() and likewise with language files. An added bonus is that it returns the loaded item for you too. Code: $app_config = $this->config->load('application'); Modular Separation - PHP5 (Modules) - El Forum - 10-15-2009 [eluser]wiredesignz[/eluser] Modular Separation - PHP5 version 1.04 is attached to this post. Added module routes. EDIT: deprecated file removed Modular Separation - PHP5 (Modules) - El Forum - 10-15-2009 [eluser]Unknown[/eluser] Hi wiredezigns, is there any place I can find the library documented? Thanks a lot! idong Modular Separation - PHP5 (Modules) - El Forum - 10-15-2009 [eluser]wiredesignz[/eluser] Documentation: Quote:Modular Separation allows you to use modules for code organization in your application. Modular Separation - PHP5 (Modules) - El Forum - 10-15-2009 [eluser]Vlad0[/eluser] [quote author="Dhanova" date="1251763056"]This is my steps: - extract a fresh CI 1.7.1 (or 1.7.2) to local server and change the base url to respect my installation dir - hit a base url: Code: http://localhost/ci_test/ - output: welcome message with correct elapsed time (eg. Page rendered in 0.0157 seconds) - extract a fresh Modular Separation 11 (or 12) and put MY_Loader.php and MY_Router.php in application/libraries - hit a base url: Code: http://localhost/ci_test/ - output: welcome message with incorrect elapsed time (at the bottom: Page rendered in {elapsed_time} seconds) Did anyone have a same problem with me?[/quote] I have same problem... on clean 1.7.2 installation Modular Separation - PHP5 (Modules) - El Forum - 10-15-2009 [eluser]wiredesignz[/eluser] Use version 1.4 Modular Separation - PHP5 (Modules) - El Forum - 10-15-2009 [eluser]Vlad0[/eluser] * @copyright Copyright © Wiredesignz 2009-10-17 * @version 1.4 im using 1.4 ... Modular Separation - PHP5 (Modules) - El Forum - 10-15-2009 [eluser]wiredesignz[/eluser] Try adding parent::__construct(); to MY_Loader constructor ~line 46 Modular Separation - PHP5 (Modules) - El Forum - 10-15-2009 [eluser]Vlad0[/eluser] Thanks... Now is working ![]() |