[TYPO3-mvc] pageRenderer->loadExtjs fails if cached action
Susanne Moog
typo3 at susannemoog.de
Sun Nov 22 21:46:53 CET 2009
Hi,
Fernando Arconada schrieb:
> 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?
I can verify that, I have not yet tested it further but I also noticed
that adding css files with the pagerenderer fails in an extbased
extension depending on the cache settings. Will probably have a look
into it tomorrow.
Best regards,
Susanne
More information about the TYPO3-project-typo3v4mvc
mailing list