[TYPO3-mvc] [Extbase] modify $this->settings don't touch Fluid template {settings}

Felix Oertel mehl at foertel.com
Wed Sep 8 08:46:37 CEST 2010


Hey the two of you,

Am 07.09.10 21:19, schrieb Thomas "Thasmo" Deinhamer:
> Claus Fassing wrote:
>> But the {settings.entryType} in the Fluid template got still the
>> original options.
>
> Not sure, but the settings are not populated by default?!

Nearly correct. ;-) They are populated by default but when the template 
is initialized, thus before your action starts. Changes to 
$this->settings in your action do not affect the templateVariable 
because it is allready assigned.

> $this->view->assign('settings', $this->settings);

Exactly. With this you re-assign the templateVariable with the new values.

@Sebastian I don't know, if it would make sense to re-assign the given 
variables before rendering takes place? I don't think we need this, 
because from a DDD point of view you don't want to touch $this->settings 
in your controller anyway.

regards, foertel


More information about the TYPO3-project-typo3v4mvc mailing list