Modular Extensions - HMVC version 5.2 |
[eluser]wiredesignz[/eluser]
If you don’t mind providing me with an email address via private message to my account I will add you to the PHP5 version mailing list.
[eluser]Sam Dark[/eluser]
There is a problem with configs in 5.0.15. You can't load global config(app/config/site.php) from a module with Code: $this->load->config('site'); Fix Add 'config/' to modules_helper.php: Code: /* then scan application directories for these types */
[eluser]wiredesignz[/eluser]
Nice work Sam. You could also autoload your site config file in the main autoload.php sequence. I will add your change to the next release. Thanks
[eluser]wiredesignz[/eluser]
For those interested, here's an indication of Modular Extensions PHP5 performance. Code: DEBUG - 2008-06-13 13:10:44 --> Config Class Initialized Source: http://www.ezybuycars.net.nz/showroom without logging 0.0247s
[eluser]Sam Dark[/eluser]
Still having problems with config with 5.0.18. It seems you forgot to include my fix.
[eluser]Ivan A. Zenteno[/eluser]
[wiredesignz] Could you send me the latest files also. Thanks
[eluser]phpwebdev[/eluser]
how to load lang file I have some like this modules -welcome --controllers --view --module --language ---english any ideas? I can load lang file, but file must be plased on the applicaton/language/english/welcome_lang.php
[eluser]wiredesignz[/eluser]
@Sam, Yes after some thought I feel it more appropriate that shared config files are added to application/config/autoload.php, this way modules are not looking in application/config twice each time they load. You might also try $this->config->load('site') as the config class has a built in loader.
[eluser]wiredesignz[/eluser]
@phpwebdev, You can load a module language file by using: $this->load->language('filename', 'langauge') as described in CI user guide. Example: Code: //modules/{current_module}/language/spanish/spanish_lang.php |
Welcome Guest, Not a member yet? Register Sign In |