[TYPO3-dev] mapped tables and Ajax EID

Philipp philippwrann at gmx.at
Fri Oct 11 08:31:48 CEST 2013


You have to parse your typoscript, so extend your bootstrap process for a few things.
What you need is to init the TyposcriptFrontendController... 

I have an eID dispatcher that starts like this:
<?php
use TYPO3\CMS\Core\Utility\GeneralUtility as Utility;
use TYPO3\CMS\Frontend as Frontend;

//determine id
$id = $_REQUEST['id'];

if (isset($id)) {
	$id = $_REQUEST['id'];
	$GLOBALS['TSFE'] = Utility::makeInstance('TYPO3\\CMS\\Frontend\\Controller\\TypoScriptFrontendController',$TYPO3_CONF_VARS,$id,0);
	/* @var $GLOBALS['TSFE'] Frontend\Controller\TypoScriptFrontendController */
	$GLOBALS['TSFE']->connectToDB();
	$GLOBALS['TSFE']->includeTCA();
	$GLOBALS['TSFE']->initFEuser();
	$GLOBALS['TSFE']->checkAlternativeIdMethods();
	$GLOBALS['TSFE']->clear_preview();
	$GLOBALS['TSFE']->determineId();
	$GLOBALS['TSFE']->initTemplate();
	$GLOBALS['TSFE']->getConfigArray();
} else {
	$GLOBALS['TSFE'] = Utility::makeInstance('TYPO3\\CMS\\Frontend\\Controller\\TypoScriptFrontendController',$TYPO3_CONF_VARS,0,0);
	$GLOBALS['TSFE']->sys_page = Utility::makeInstance('TYPO3\\CMS\\Frontend\\Page\\PageRepository');
	/* @var $GLOBALS['TSFE']->sysd_page Frontend\Page\PageRepository */
	$GLOBALS['TSFE']->initFEuser();
}

maybe that helps you.



More information about the TYPO3-dev mailing list