Skip to content

Instantly share code, notes, and snippets.

@jmverges
Created December 2, 2014 14:54
Show Gist options
  • Save jmverges/927068b2dd5e2237ecd6 to your computer and use it in GitHub Desktop.
Save jmverges/927068b2dd5e2237ecd6 to your computer and use it in GitHub Desktop.
Get all typoscript in service or hook
$GLOBALS['TT'] = new \TYPO3\CMS\Core\TimeTracker\NullTimeTracker();
$GLOBALS['TSFE'] = new \TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController($TYPO3_CONF_VARS, $pid,
0, true);
$GLOBALS['TSFE']->connectToDB();
$GLOBALS['TSFE']->initFEuser();
$GLOBALS['TSFE']->determineId();
$GLOBALS['TSFE']->getCompressedTCarray();
$GLOBALS['TSFE']->initTemplate();
$GLOBALS['TSFE']->getConfigArray();
$settings = $GLOBALS['TSFE']->tmpl->setup;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment