[TYPO3-mvc] I proudly present my first TYPO3 MVC Project

Bastian Waidelich bastian at typo3.org
Thu Jul 30 11:07:22 CEST 2009


Sebastian KurfŸürst wrote:

Hi,

> Actually I still think that these settings should _not_ be used 
> too heavily inside custom extension code.

+1
Please always consider the reusability of extension- and viewhelper code!

E.g. instead of accessing the current extension settings from within 
your view helper, you should pass in all required values from your template.

This can be easily achieved with:

<x:myCustomViewhelper foo="{settings.bar}" />

This will make sure, that the view helper is more likely to be reusable 
in other extensions and it increases the chances of FLOW3 compatibility.

If there are too many settings you have to set again and again, there 
will be a really helpful tool for you soon, namely partials.

Bastian


More information about the TYPO3-project-typo3v4mvc mailing list