[TYPO3-english] $GLOBALS["TSFE"]->feuser
Bjarne Helligsoe
bjarnehelligsoe at hotmail.com
Sun Jun 21 00:41:41 CEST 2009
Hi Alex,
I followed your idea, which is what I need, but I gets the following
message:
PHP Fatal error: Call to a member function push() on a non-object in
C:\BBH-DATA\Web\t3_4_3\typo3\sysext\cms\tslib\class.tslib_fe.php on line 599
The line which gives the error:
598 protected function initCaches() {
599 $GLOBALS['TT']->push('Initializing the Caching System','');
600
601 $GLOBALS['typo3CacheManager'] =
t3lib_div::makeInstance('t3lib_cache_Manager');
602 $GLOBALS['typo3CacheFactory'] =
t3lib_div::makeInstance('t3lib_cache_Factory');
603
$GLOBALS['typo3CacheFactory']->setCacheManager($GLOBALS['typo3CacheManager']);
ect
ect
Any idea?
Regards
Bjarne
"alex widschwendter" <a.widschwendter at mediares.at> wrote in message
news:mailman.1.1245417613.18132.typo3-english at lists.netfielders.de...
> hi,
>
>> In a rightclickmenu I need to get user information, but the values in
>> $GLOBALS["TSFE"]->feuser are empty, and therefor not init. The menu is a
>> ajax menu, and so the php page who generate the men is a "stand alone"
>> file. With a init.php (stole and rewrited "/typo3/init.php") I have set
>> up the difference variables, but not the $GLOBALS["TSFE"]->feuser.
>>
>> Does anyone know where in the core $GLOBALS["TSFE"]->feuser is set, or
>> better which T3 class do I have to include on me standalone page???
>
> afaik you could use an eid script for that.
>
> a template for you script:
>
> <?php
> require_once(PATH_tslib.'class.tslib_pibase.php');
> //require_once(PATH_tslib.'class.tslib_fe.php');
> // Exit, if script is called directly (must be included via eID in
> index_ts.php)
> //if (!defined ('PATH_typo3conf')) die ('Could not access this script
> directly!');
>
> // Initialize FE user object:
> $feUserObj = tslib_eidtools::initFeUser();
>
> // Connect to database:
> tslib_eidtools::connectDB();
>
> you have to enable the eid script in the ext_localconf.php of your
> extension:
>
> $TYPO3_CONF_VARS['FE']['eID_include']['addToBasket'] =
> 'EXT:mdrs_24safe_shop/addToBasket.php';
>
> hth alex
More information about the TYPO3-english
mailing list