[TYPO3-mvc] Fluid format.date and AJAX with eID
Einar Gislason
einarsvan at gmail.com
Tue Apr 30 15:00:31 CEST 2013
Hi
I'm having trouble getting Fluid to format dates correctly when fetching
data via AJAX.
Everything works fine when I load the template normally but when I get the
data dynamically the <f:format.date format="%A,
%Y">{day.date}</f:format.date> will return the date formatted in english
and not in danish.
I'm using eID and my Dispatcher looks like this:
<?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' => 'FtfEvents',
'pluginName' => t3lib_div::_GP('pluginName'),
'vendorName' => 'FTF',
'switchableControllerActions' => array(
'Event' => array('calendar')
)
);
$bootstrap = t3lib_div::makeInstance('Tx_Extbase_Core_Bootstrap');
$bootstrap->cObj = $GLOBALS['TSFE']->cObj;
echo $bootstrap->run('', $configuration);
$GLOBALS['TSFE']->fe_user->storeSessionData();
?>
Any help, tips or pointers would be greatly appreciated.
I'm using TYPO3 4.5.25, Extbase 1.3.4 and Fluid 1.3.1
Kind regards, Einar
--
Using Opera's mail client: http://www.opera.com/mail/
More information about the TYPO3-project-typo3v4mvc
mailing list