[TYPO3-mvc] Blog example: Number of comments

Sebastian KurfŸürst sebastian at typo3.org
Wed Jul 29 23:22:23 CEST 2009


Hi Julian,

in your context, it makes more sense to use a variable.

RenderChildren should mainly be used if you need some text content which 
you process somehow.

Thus, in your case, I'd rewrite the ViewHelper to have <NAMESPACE:count 
array="{post.comments}" />.

Then, you'll have strong type checking and all this as well :-) and the 
performance is a little bit faster than with using sub nodes (though 
this is neglectible)

Greets,
Sebastian


More information about the TYPO3-project-typo3v4mvc mailing list