[TYPO3-mvc] how i can get settings in partials

Dennis Ahrens dennis.ahrens at googlemail.com
Tue Apr 17 15:26:56 CEST 2012


Hi Ralf-Rene,

you may want to hand over all settings to your partial:

<f:render partial="Foo" arguments="{settings: settings}" />

The syntax for arguments is like a associative array in PHP. The key on 
the left side indicates the name of the variable, the value on the right 
side is the value of the variable.

{foo: 'bar'} assigns the string bar to the variable foo.

assume you have a object in {person}:

{thePerson: person} assigns the variable newPerson with the value of 
{person}

hope this makes it a bit clearer.

regards
Dennis


More information about the TYPO3-project-typo3v4mvc mailing list