Welcome Guest, Not a member yet? Register   Sign In
Need help with language helper
#1

Can you help me ?
I cannot switch my language into my view.

Here is my config.php

$autoload['helper'] = array('url', 'file', 'language');
$autoload['language'] = array('homepage');

My view is on php like that : <?= lang('carousel_title'); ?>

My controller : public function index($language = 'french')

And here is my routes :

// Routes fran├žaise
$route['fr'] = 'Page/index';

// Route Anglaise
$route['en'] = 'Page/index/english';


My problem, is for every url, i'm in french. /en didn't work. How set the default language for an user in my controller ?
Reply


Messages In This Thread
Need help with language helper - by florent6001 - 04-03-2019, 11:13 AM
RE: Need help with language helper - by jreklund - 04-03-2019, 12:49 PM
RE: Need help with language helper - by jreklund - 04-04-2019, 02:49 AM
RE: Need help with language helper - by neuron - 04-06-2019, 02:39 AM



Theme © iAndrew 2016 - Forum software by © MyBB