site_url fail to work with language
i want to have the url such as
http://localhost/cms/en/homewhere
http://localhost/cms is the path to my cms folder. en is the language i want to set. as i need to append site_url() in front all the links. I did by doing <?php echo site_url()en/home; ?>
which i think is not right, so i decide to use the build in language functions. i set the the language mode in my_fuel.php to $config['language_mode'] = 'segment'; and i changed config.php to $config['language'] = 'en';
however when i do <?php echo site_url()/home; ?> the en is not reflected in the url
according to
http://docs.getfuelcms.com/helpers/my_url_helper , (boolean) $language sets the language parameter on the URL based on the "language_mode" setting in the FUEL configuration
Comments
// append the current language value to the site URL automatically
$config['add_language_to_site_url'] = TRUE;