[eluser]Gewa[/eluser]
HI. I tried to fight with your URI langage identifier, but he wins. Please help me
I put CI 1.6.1
my routs file contain only
Code:
$route['default_controller'] = "welcome";
$route['scaffolding_trigger'] = "";
$route['(\w{2})/(.*)'] = '$2';
$route['(\w{2})'] = $route['default_controller'];
my config.php contain
Code:
$config['language'] = "ru";
//default language abbreviation
$config['language_abbr'] = "ru";
//set available language abbreviations
$config['lang_uri_abbr'] = array("en" => "english", "ru" => "russian","de"=>"german");
//ignore this language abbreviation
$config['lang_ignore'] = "ru";
and i have the MY_Language.php in the folder libraries...
Beside that I have htaccess , that removes the index.php
Code:
RewriteEngine on
RewriteCond $1 !^(index\.php|images|user_guide|robots\.txt)
RewriteRule ^(.*)$ /index.php/$1 [L]
but in
Code:
class Welcome extends Controller {
function Welcome()
{
parent::Controller();
}
function index()
{
$lang=$this->config->item('language_abbr');
echo $lang;
}
}
WHATEVER You change the url, for example mysite.com/en
it shows "ru"
what is the problem????