Welcome Guest, Not a member yet? Register   Sign In
Language Class
#2

(This post was last modified: 04-09-2015, 07:41 AM by gadelat.)

Second parameter of load method in language class is useless since some of the CI 3.0 parts always do reloading of language file in language specified in your config. Form_validation is one of them. So if you need to change language for some files reliably, always change your config language beforehand like this
PHP Code:
$this->config->set_item('language''hebrew'); 
It has also additional benefit that you don't need to specify second parameter after that.
Reply


Messages In This Thread
Language Class - by scalar1 - 04-09-2015, 06:36 AM
RE: Language Class - by gadelat - 04-09-2015, 07:07 AM



Theme © iAndrew 2016 - Forum software by © MyBB