[TYPO3-mvc] viewHelper called twice

Georg Schönweger georg.schoenweger at gmail.com
Fri May 6 15:23:59 CEST 2011


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


More information about the TYPO3-project-typo3v4mvc mailing list