Unable to load the requested language file - In extended controller |
I am new to codeigniter and I'm having trouble when extending a controller with this error message:
Quote:Unable to load the requested language file 'users' for current language 'english' AND for fallback to 'English'. The code: Code: class Settings extends Admin_Controller { The second class Code: require_once(APPPATH. '/modules/users/controllers/Settings.php'); I believe the error is because the system is looking for the language file ($this->lang->load('users')) in the funcionario module directory (Content class is in funcionario/controllers) instead of looking in the users module directory (Settings class is in users/controllers). The folder structure is comes from CI Bonfire. Codeigniter version: 3
Try getting the CI super object.
$CI =& get_instance(); What did you Try? What did you Get? What did you Expect?
Joined CodeIgniter Community 2009. ( Skype: insitfx )
|
Welcome Guest, Not a member yet? Register Sign In |