[TYPO3-mvc] Get Controllers settings in viewhelper

Philipp Wrann philippwrann at gmail.com
Thu Mar 6 10:42:14 CET 2014


Hey,

as you know you can access your settings (and flexform settings) in a controller via
$this->settings

You can also pass them to your view and call a viewhelper like

<namespace:viewhelper settings="{settings}"/>

But is it possible to get the settings from the controllerContext in the viewHelper without passing it?
I have a few hundered views and most of them contain multiple viewhelpers where i want to access those settings, i dont want to adjust all views, is there a way to do something like this within a fluid viewhelper:

$this->controllerContext->getSettings()?


More information about the TYPO3-project-typo3v4mvc mailing list