[eluser]Gewa[/eluser]
[quote author="wiredesignz" date="1209228671"]$uri->segment(1) will equal the identifier because it is added from $config() anyway, So use whichever suits.[/quote]
Code:
function test(){
$lang=$this->uri->segment(1);
echo $lang;
$language=$config->item(’language’);
echo $language;
}
I tried both.
First gives such problem, that if people go to mysite.com/catalog (without any language abrreviation) then it gives $lang=catalog, which is quite problem.
second gives that the error described in my least post.
Message: Undefined variable: config
I would like to use second way, not to have problem when the site is in default mode without abbreviation..