[TYPO3-mvc] Call ViewHelper from another ViewHelper

Sebastian Kurfürst sebastian at typo3.org
Thu Jan 20 09:22:42 CET 2011


Hey,
> I've got some ViewHelpers doing basic stuff, like formating dates, 
> calculations or the link Action that adds some css classes.
> If there is NO way to access another viewHelper properly, what would the work around
> look like? Use a Utility Class with DI in the ViewHelpers that need this functionality?
Correct, extract the "Basics" like formatting dates into Service
Classes, and only call them via the ViewHelper.

Greets,
Sebastian


More information about the TYPO3-project-typo3v4mvc mailing list