[TYPO3-mvc] Extbase and Fluid as a service/hook

Stefan Frömken firma at sfroemken.de
Mon Aug 29 18:15:37 CEST 2011


Am 29.08.2011 17:44, schrieb Dirk Rauscher:
> Hi Stefan,
>
>>> OK...with Tx_Fluid_View_StandaloneView I am a step further.
>>> Now I want to get data from my Repositories. Any idea?
>>> Stefan
>> I found Tx_Extbase_Core_Bootstrap->run()
>> But this needs a plugin name which I don't have...
>
> So where are your repositoriy classes located?
>
>
> Cheers, Dirk
>
I configured my service/hhook on my own now. Without any configureModule 
or what ever:

----------------------------------------------------

$extensionName = 'KeHooks';
$moduleSignature = 'TableHeader';
$controllerActions = array('TableHeader' => 'index');

if 
(!is_array($GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['extbase']['extensions'][$extensionName]['modules'][$moduleSignature])) 
{
	$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['extbase']['extensions'][$extensionName]['modules'][$moduleSignature] = array();
}
foreach($controllerActions as $controllerName => $actions) {
	$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['extbase']['extensions'][$extensionName]['modules'][$moduleSignature]['controllers'][$controllerName] = array(
		'actions' => t3lib_div::trimExplode(',' , $actions)
	);
}

$configuration = array();
$configuration['extensionName'] = 'KeHooks';
$configuration['pluginName'] = 'TableHeader';
$configuration['switchableControllerActions']['TableHeader'][1] = 'index';
$html = $this->extbaseBootStrap->run('', $configuration);
$this->pObj->HTMLcode = $html . $this->pObj->HTMLcode;

-------------------------------------------------------

My repositories are configured in an other extension. That's why I 
extend the Repositoryclass from my other extensions to the current 
extension.

I just get it to works.

Thank you

Stefan


More information about the TYPO3-project-typo3v4mvc mailing list