[TYPO3-mvc] settings within a repository?
Michael Feinbier
mf at hdnet.de
Thu Aug 12 10:00:48 CEST 2010
Hi Sven
Am 11.08.10 15:51, schrieb Sven Kalbhenn:
> Hi folks,
>
> how can i get the settings (TSetup) within a repository?
In a service of mine I access the settings like this:
public function getTypoScriptSettings() {
$global =
Tx_Extbase_Dispatcher::getConfigurationManager()->loadTypoScriptSetup();
return Tx_Extbase_Utility_TypoScript::convertTypoScriptArrayToPlainArray(
$global['plugin.']['tx_extkey.']['settings.']
);
}
I am not shure if this is the best approach, but it works like a charm.
Hope that helps
Micha
More information about the TYPO3-project-typo3v4mvc
mailing list