i defined in my_fuel.php, $config['site_lang']="en", putting in my_fuel.php, allow i switch on setting module at the back to allow user to set the language.
Where are you calling "$this->fuel->config('site_lang');" and is $this referencing the $CI object. To test an alternative you can use CI()->fuel->config('site_lang'). The CI function is a wrapper around the get_instance() function.
The $CI object has not been created at that point in the process. The routes are used to determine which controller to use and the controller is essentially the $CI object ($this).
Call to undefined function CI() in /Applications/XAMPP/xamppfiles/htdocs/cms/fuel/application/config/routes.php on line 41, i believe CI instance is not even loaded?
That is correct. Not much has been loaded at this point including the $CI object. You may have to do a normal include of the file and reference it via $config['site_lang']
Comments