[TYPO3-mvc] viewHelper called twice

Georg Schönweger georg.schoenweger at gmail.com
Mon May 9 13:58:19 CEST 2011


could this be a bug in extbase / fluid or am i doing something wrong? I
tested now also with the blog example extension, same here ... the
render Method of every viewHelper gets called 2 times.

- Georg

Am 06.05.2011 15:23, schrieb Georg Schönweger:
> Hi,
>
> is it normal behavior that a viewHelper is called twice?
>
> template:
> <div class="sni_reference_list">
>     {sni:raw(rawHtml: pages.0.title)}
> </div>
>
> viewHelper:
>     public function render($rawHtml = "") {
>         echo("called<br>")
>         return ($rawHtml);
>     }
>
> controller:
>     public function listAction() {
>         $this->pageRepository =
> t3lib_div::makeInstance("Tx_SniReferences_Domain_Repository_PageRepository");
>         $pages = $this->pageRepository->findAll();
>         $this->view->assign("pages",$pages);
>     }
>
> i insertet the plugin as content element on an empty page with no other
> CE's. The viewHelper is always called twice ... why?
>
> - Georg
> _______________________________________________
> TYPO3-project-typo3v4mvc mailing list
> TYPO3-project-typo3v4mvc at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-project-typo3v4mvc


More information about the TYPO3-project-typo3v4mvc mailing list