[TYPO3-english] Create Front-end environment in Scheduler with multiple domain
Sengchheang
sengchheang at web-essentials.asia
Tue Mar 6 10:12:49 CET 2012
Hi All,
I have a problem when working on scheduler with multiple domains website
but it works well in single domain.
In multiple domains website, I have tried to generate typolink to the
page abc (see sample page tree below) but I got an error "Call to a
member function pageNotFoundAndExit() on a non-object" from this
function "$this->cObj->typolink_URL($typolinkConf);"
if anybody know what I am wrong or missing, please help.
-----------------------------------------------------------
My sample page tree
Root
----Domain-1
----abc
----Domain-2
----def
----Domain-3
----ghi
And this is the block of code to generate front-end environment
$this->cObj = t3lib_div::makeInstance('tslib_cObj');
$timeTrack = t3lib_div::makeInstance('t3lib_timeTrack');
$GLOBALS['TT'] = new $timeTrack();
$GLOBALS['TT']->start();
$tsfe = new tslib_fe($TYPO3_CONF_VARS, <id_of_abc>, 0, 0);
$tsfe->connectToDB();
$tsfe->initFEuser();
$tsfe->fetch_the_id();
$tsfe->getPageAndRootline();
$tsfe->initTemplate();
$tsfe->forceTemplateParsing = 1;
$tsfe->getConfigArray();
$tsfe->initUserGroups();
$tsfe->initTemplate();
$tsfe->determineId();
$GLOBALS['TSFE'] = $tsfe;
$this->cObj->start(array(), '');
Thanks,
Sengchheang
More information about the TYPO3-english
mailing list