[TYPO3-mvc] view renderer ignores action argument
g4-lisz at tonarchiv.ch
g4-lisz at tonarchiv.ch
Thu Oct 13 03:56:24 CEST 2011
On 10/13/2011 02:45 AM, Bastian Waidelich wrote:
> g4-lisz at tonarchiv.ch wrote:
>
> Hi G4 Lisz ;)
>
>> if ($demand->getSpecialDemands() !== NULL) {
>> $this->request->setControllerActionName('resultsExtended');
>
> better don't mess with that non-api methods of the request. That can
> have severe side effects.
> Instead you should make use of Fluid partials and layouts where
> possible. And if that's not sufficient have a look at the VariantView
> from Peter:
> http://forge.typo3.org/projects/typo3v4-mvc/wiki/How_to_change_the_template_for_one_plugin_instance
>
>
> Best,
> Bastian
>
But it was so simple and it works nicely! ;)
I wonder why there is no setTemplateFilename() method. And
getTemplateSource($action) is protected so one had to re-invent the
rootpath-magic.
I don not really understand what you mean wiht "non-api method"...
Cheers,
Till
More information about the TYPO3-project-typo3v4mvc
mailing list