Welcome Guest, Not a member yet? Register   Sign In
How can i call parent method - Extending CI_Lang
#2

[eluser]toopay[/eluser]
Any error occur by above script?

You should not grab $CFG like that. Its more appropriate to use something like :
Code:
$config =& get_config();
$this->load($lang_file, $config['language']);

Also, you actually dont have to passed the second parameter to fetch language config, the load method within Lang class will do that automatically if you dont passed the second argument.



Messages In This Thread
How can i call parent method - Extending CI_Lang - by El Forum - 03-10-2012, 03:02 PM
How can i call parent method - Extending CI_Lang - by El Forum - 03-12-2012, 07:42 PM



Theme © iAndrew 2016 - Forum software by © MyBB