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

Claus Fassing claus at fassing.eu
Thu Sep 9 13:30:30 CEST 2010


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello Sebastian,

Am 08.09.2010 08:58, schrieb Sebastian Kurfürst:
> Hey Claus,
> 
> instead of modifying $this->settings in your controller, I'd rather
> suggest that you put the needed information into the Fluid template
> directly, by using $this->view->assign('entryType', ...), and then
> inside your template you can do {entryType}.
> 
> Settings are meant to be strictly read-only, so if you change them
> around, this might break in a future version.
> 
> Hope this helps :-)

yes, pretty much ! I didn't realized this nice mechanism before.

Regards Claus
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQEcBAEBAgAGBQJMiMVVAAoJELsIv+audObf0gUH/0nO7Ij3bCGmFei2ThgYcviv
Uy/u39fYBK2GgtL6X06ljK/pTxpTRd6VwIc/Di+PESyyV2oEXh81ViHHc9kxLfQe
KwkVCerhGmH7xKx40t0BijtBNDz7Srcp5w61PfeYun5RQ2HIy2NlTlAJseArasAf
TlGso988MNZlIRFithXIVRlGWDhHcoI9WjxTu8hO4zwesNjXERXquPgFtS0YQqPq
LCtHzmAHs9BtpQTV4nSxYNxvg/lW0BW7s/jr4X3kj/rDVQViK74L5xEAWsboGD6Y
ZOtYCuXzIGqUSeH911WYs+tM8U9gv0DMAZVPGYKhL2RGcnHAN/ZL9VPT3NDEepc=
=XJs4
-----END PGP SIGNATURE-----


More information about the TYPO3-project-typo3v4mvc mailing list