[TYPO3-UG Denmark] Extbase bootstrap

Søren Malling soren.malling at gmail.com
Mon Nov 19 09:51:58 CET 2012


Hej Jon,

Du kan bruge $this->forward [1] til at videresende din forespørgsel

Prøv at se om det lykkedes for dig.


Mvh

Søren

[1]
http://api.typo3.org/typo3v4/current/html/class_tx___extbase___m_v_c___controller___abstract_controller.html#a70b1cd5185e0e7e6fdb22d31fa7fe382


Søren Malling

Twitter: twitter.com/sorenmalling
TYPO3 Danmark: twitter.com/typo3dk


2012/11/19 Jon Klixbüll Langeland <jl at typoconsult.dk>

>
>
> Hej brugergruppe
>
> Jeg sidder med et lille problem.. Jeg forsøger fra en controller->action
> at afvikle en anden controller->action og få indholdet returneret. Jeg har
> forsøgt mig med:
>
>
> class Tx_Solvent_Controller_SolventController extends
> Tx_Extbase_MVC_Controller_ActionController {
>
>         public function indexAction() {
>                 $bootstrap = t3lib_div::makeInstance (
> 'Tx_Extbase_Core_Bootstrap' );
>                 $configuration = array (
>                                 'pluginName' => 'Section',
>                                 'extensionName' => 'Synthesis',
>                                 'controller'=> 'Section',
>                                 'action' => 'render',
>                 );
>                 $_POST['tx_solvent_section']['controller'] = 'Section';
>                 $sContent = $bootstrap->run ( '', $configuration );
>
>
>                 $this->view->assign ( 'sContent', $sContent );
>         }
>
> }
>
>
>
> class Tx_Solvent_Controller_SectionController extends
> Tx_Extbase_MVC_Controller_ActionController {
>
>         public function renderAction() {
>                 return 'this is the renderAction of the Section class';
>         }
> }
>
>
> Og i min ext_localconf.php:
> Tx_Extbase_Utility_Extension::configurePlugin ( $_EXTKEY, 'Section', array
> (
>                 'Section' => 'render'
> ),
>                 // non-cacheable actions
>                 array (
>                                 'Section' => 'render'
>                 ) );
>
>
> Men jeg ender altid med 'Uncaught TYPO3 Exception #1316104317' (
> http://wiki.typo3.org/Exception/v4/1316104317)
>
>
> Nogle forslag ??
>
> Er der nogle der
>
>
> Med venlig hilsen
>
> Jon Klixbüll Langeland
> TYPO3 senior udvikler
> TypoConsult A/S
> Tel: 70207036
> Direkte: 88276077
> Web: www.typoconsult.dk
> Mail: jl at typoconsult.dk
>
> _______________________________________________
> TYPO3-UG-Denmark mailing list
> TYPO3-UG-Denmark at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-ug-denmark
>


More information about the TYPO3-UG-Denmark mailing list