[TYPO3-dev] Read typoscript configuration

Philipp Gampe philipp.gampe at typo3.org
Sat May 10 19:58:17 CEST 2014


Hi Heinz,

Heinz Müller wrote:

> Thanks Charles, that's exactly what I was looking for. I tested it in the
> controller and it worked, although it didn't work in my model. Is there a
> trick to fetch this settings array from there?

>From a conceptional point of view, your model should not need setting. If 
you need to set some flags, provide a setting and inject the "setting" 
during object creation.

Conditional logic can be the in the controller (passed to repository if 
needed) or in the view.

Best regards
-- 
Philipp Gampe – PGP-Key 0AD96065 – TYPO3 UG Bonn/Köln
Documentation – Active contributor TYPO3 CMS
TYPO3 .... inspiring people to share!




More information about the TYPO3-dev mailing list