Welcome Guest, Not a member yet? Register   Sign In
load language (HMVC)!
#1

[eluser]Ngua Go[/eluser]
I used HMVC !
I have language, url: modules/news/language/english/news_lang.php
on controller of 'shop module' i write:

Code:
$this->load->language('news', 'english');

but it don't load language, i see file: third_party/MX/Loader.php (line 108)
Code:
return CI::$APP->lang->load($langfile, $lang, $return, $this->_module);
see file: system/core/lang.php (line 52)
Code:
function load($langfile = '', $idiom = '', $return = FALSE, $add_suffix = TRUE, $alt_path = '')
I realize: Param $this->_module on CI::$APP->lang->load() not be known by function load()
There may be confusion ! I want call language from other modules! Please Help me !
Sorry for bad English !
#2

[eluser]Ngua Go[/eluser]
I solved the problem !
On third_party/MX/Loader.php, i change
Code:
return CI::$APP->lang->load($langfile, $lang, $return, $this->_module);
to
Code:
return CI::$APP->lang->load($langfile, $lang, $return, $langfile);

So now i can load lang of other module !

But when config autoload => error !




Theme © iAndrew 2016 - Forum software by © MyBB