[TYPO3-mvc] Manually set the template path in the controller

Peter Niederlag typo3-list at niekom.de
Mon May 23 12:47:45 CEST 2011


Hello,

Am 23.05.2011 12:03, schrieb Sebastian Kurfürst:
> Hey,
>
> inside your controller action, you can do:
>
> $this->view->setTemplatePathAndFilename(...);

With the drawback that you have a "fixed path" and can't use that 
fantastic "replace directory" feature anymore or at least you have to 
manually take care of handling them appropriatly. ;(

I use a View/VariantView for this purpose:
https://gist.github.com/822613

Action.<Variant>.html

Greets,
Peter
-- 
Peter Niederlag
http://www.niekom.de * TYPO3 & EDV Dienstleistungen *


More information about the TYPO3-project-typo3v4mvc mailing list