[TYPO3-mvc] How can I access arguments of childnodes from within my viewHelper
Franz Koch
typo3.RemoveForMessage at elements-net.de
Thu Feb 11 15:10:48 CET 2010
Hi,
> Anyway I don't understand why it shouldn't work this way:
>
> SwichtViewhelper:
> Add the switch value to
> $this->templateVariableContainer->add(whatever,...)
>
> Case Viewhelper:
> Compare the $this->TemplateVariableContainer->get(whatever) with own
> case if eq render childElements.
Right - that could do the trick - but will also be waste more CPU cycles
as more things have to get processed. If I find the time I'll have a
look at that again.
> Btw: you might need a break viewhelper as well ;).
not for the switchViewHelper - there the logic can reside in the main
viewHelper itself - also with your solution.
--
kind regards,
Franz Koch
More information about the TYPO3-project-typo3v4mvc
mailing list