[TYPO3-dev] cObj in BE
Oliver Hader
oh at inpublica.de
Fri Jan 12 16:40:09 CET 2007
Hi Steffen,
Steffen Kamper wrote:
> Hi list,
>
> i try for a while to get a local cObj to work in BE.
> By doing
> include_once(PATH_site.'typo3/sysext/cms/tslib/class.tslib_content.php');
> $cObj=t3lib_div::makeInstance('tslib_cObj');
>
> the object $GLOBALS['TSFE'] is not filled properly.
>
> Do you have any hint how to do it ?
$GLOBALS['TSFE'] is a reference to an instance of tslib_fe
(tslib/class.tslib_fe.php). $GLOBALS['TSFE']->cObj has the instance of
tslib_cObj. $GLOBALS['TSFE'] is instantiated in tslib/index_ts.php like
in this example:
$temp_TSFEclassName = t3lib_div::makeInstanceClassName('tslib_fe');
$TSFE = new $temp_TSFEclassName(
$TYPO3_CONF_VARS,
t3lib_div::_GP('id'),
t3lib_div::_GP('type'),
t3lib_div::_GP('no_cache'),
t3lib_div::_GP('cHash'),
t3lib_div::_GP('jumpurl'),
t3lib_div::_GP('MP'),
t3lib_div::_GP('RDCT')
);
$TSFE->connectToDB();
olly
--
Oliver Hader
http://inpublica.de/
More information about the TYPO3-dev
mailing list