Skip to content

Instantly share code, notes, and snippets.

@aertmann
Created July 30, 2012 13:47
Show Gist options
  • Save aertmann/3207031 to your computer and use it in GitHub Desktop.
Save aertmann/3207031 to your computer and use it in GitHub Desktop.
<?php
require_once(t3lib_extMgm::extPath('realurl').'class.tx_realurl.php');
$GLOBALS['TSFE'] = t3lib_div::makeInstance('tslib_fe', $GLOBALS['TYPO3_CONF_VARS'], 0, 0);
tslib_eidtools::connectDB();
tslib_eidtools::initLanguage();
$GLOBALS['TSFE']->initFEuser();
$GLOBALS['TSFE']->set_no_cache();
$GLOBALS['TSFE']->checkAlternativeIdMethods();
$GLOBALS['TSFE']->determineId();
$GLOBALS['TSFE']->initTemplate();
$GLOBALS['TSFE']->getConfigArray();
$GLOBALS['TSFE']->includeTCA();
$GLOBALS['TSFE']->config['config']['tx_realurl_enable'] = 1;
$GLOBALS['TSFE']->cObj = t3lib_div::makeInstance('tslib_cObj');
$GLOBALS['TSFE']->settingLanguage();
TSpagegen::pagegenInit();
$configuration = array(
'extensionName' => 'MocProducts',
'pluginName' => 'Pi1',
'switchableControllerActions' => array(
'Ajax' => array('productFilter')
)
);
$bootstrap = t3lib_div::makeInstance('Tx_Extbase_Core_Bootstrap');
$bootstrap->cObj = $GLOBALS['TSFE']->cObj;
echo $bootstrap->run('', $configuration);
$GLOBALS['TSFE']->fe_user->storeSessionData();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment