[TYPO3-mvc] Partial

Malte Beran malte.beran at gmail.com
Tue Feb 22 22:14:59 CET 2011


Got a solution.

public function listAction() {

       $partialOrTemplate =
t3lib_extMgm::extPath($this->request->getControllerExtensionKey()) .
'Resources/Private/Partials/ImmobilienObject/test.html';
       $this->view->setTemplatePathAndFilename($partialOrTemplate);
       $this->view->assign('test', 'Hello Word');
       $rendered = $this->view->render();
}

2011/2/22 Malte Beran <malte.beran at gmail.com>

> Hi,
> is it possible to render a partial within a controller?
>
> Malte
> _______________________________________________
> 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