[TYPO3-mvc] using ExtJS in an Extbase Extension

dennis ahrens dennis.ahrens at googlemail.com
Thu Mar 18 17:50:06 CET 2010


Hi Jonas,

your posted snippet is located inside a controller action which is
called as BE-Module?
How do you assign $this->doc ?

I guess you have to tell the doc to be rendered.

$HTMLMarkup = $this->doc->startPage('foo') . $this->doc->endPage();

$HTMLMarkup will now hold the output made by the t3lib_pagerenderer.

If you don't want to use the a ViewLayer at all - have a look at

Tx_MvcExtjs_ExtJs_ActionController::renderExtJSModule()

Xavier has solved the problem by creating a own ViewInstance that
works together with a ViewHelper that just print out the assigned code
($HTMLMarkup).

regards
Dennis

2010/3/18 Jonas Götze <jonnsn at gmail.com>:
> Hi,
>
> Is there something similiar for Backend-Modules? I am having the same
> problem there now. The head-tags remain completely emtpy.
>
> I tried
> $this->pageRendererObject = $this->doc->getPageRenderer();
> $this->pageRendererObject->loadExtJS();
> $this->pageRendererObject->enableExtJSQuickTips();
> $this->pageRendererObject->addExtOnReadyCode(
>      //some extJs code
> );
>
> still have to learn a lot... :-)
> I am reading through a lot of code from other extensions (mostly mvc_extjs)
> but seems like i didn't find the correct settings yet.
> Hope someone can give me a hint on that.
>
> Regards
> Jonas
>
> 2010/3/13 Steffen Ritter <info at rs-websystems.de>
>
>> Am 13.03.2010 10:39, schrieb Jonas Götze:
>>
>>> I tried the following code in my own action (inspired by mvc_extjs ;-) )
>>> *    // Load ExtJS libraries
>>>         $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!");'
>>>         );*
>>> But in the Output, there is no Javascript included at all...
>>>
>>
>> Hey, is the plugin uncached.
>> As far as I know there is a bug in using the pagerenderer from _INT
>> objects.
>>
>> Regards
>>
>> Steffen
>> _______________________________________________
>> TYPO3-project-typo3v4mvc mailing list
>> TYPO3-project-typo3v4mvc at lists.typo3.org
>> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-project-typo3v4mvc
>>
> _______________________________________________
> TYPO3-project-typo3v4mvc mailing list
> TYPO3-project-typo3v4mvc at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-project-typo3v4mvc
>


More information about the TYPO3-project-typo3v4mvc mailing list