[TYPO3-mvc] pageRenderer->loadExtjs fails if cached action
Fernando Arconada
falcifer2001 at yahoo.es
Sun Nov 15 16:37:52 CET 2009
Hello
For example taking the extension mvc_extjs_samples (http://
forge.typo3.org/projects/show/extension-mvc_extjs_samples) as reference.
I have realized that:
$GLOBALS['TSFE']->backPath = TYPO3_mainDir;
$GLOBALS['TSFE']->getPageRenderer()->loadExtJS();
$GLOBALS['TSFE']->getPageRenderer()->enableExtJSQuickTips();
// Show a message box when the page is ready
$GLOBALS['TSFE']->getPageRenderer()->addExtOnReadyCode(
'Ext.Msg.alert("My Title", "Hello World!");'
);
fails if you are using cached actions
Tx_Extbase_Utility_Extension::configurePlugin(
'MvcExtjsSamples',
'HelloWorld',
array('HelloWorld' => 'index'),
array('HelloWorld' => 'index')
);
instead of
Tx_Extbase_Utility_Extension::configurePlugin(
'MvcExtjsSamples',
'HelloWorld',
array('HelloWorld' => 'index'),
array()
);
Anyone could verify it? is it a bug or a feature?
Kind Regards
Fernando Arconada
More information about the TYPO3-project-typo3v4mvc
mailing list