[TYPO3-UG Denmark] Extbase bootstrap
Jon Klixbüll Langeland
jl at typoconsult.dk
Mon Nov 19 09:11:35 CET 2012
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
More information about the TYPO3-UG-Denmark
mailing list