[TYPO3-dev] Manipulating languages

tapio tapio.markula at dnainternet.net
Wed Jan 25 13:49:48 CET 2006


Mathias Schreiber [wmdb] wrote:
> tapio wrote:
> 
>> print_r($GLOBALS['BE_USER']['langSplitIndex']);
>>
>>
>> Fatal error: Cannot use object of type ux_t3lib_tsfeBeUserAuth as 
>> array in 
>> /var/www/customers/tyouupumuskeskus/public_html/typo3conf/ext/tm_contentaccess/class.ux_tslib_cobj.php 
>> on line 8
>>
>> How to use those kinds of objects?
> 
> 
> use debug().
> Plus I sugget you use the ext cc_debug as well, makes live a lot easier.
> Don't forget to set the correct IP filter in the install toll at DEVipMask
> 

Anyway I found the info

the language of the user is
$GLOBALS['BE_USER']

print_r prints:


ux_t3lib_tsfeBeUserAuth Object
(

[uc] => Array

...
     [lang] => fi

the desired value is

['uc']['lang'] of 'ux_t3lib_tsfeBeUserAuth'

I don't know the whole syntax

$BEUserLang = $GLOBALS['BE_USER'] what_here ['uc']['lang'];






More information about the TYPO3-dev mailing list