[TYPO3-mvc] Fluid: Accessing an array item

Sebastian Kurfürst sebastian at typo3.org
Tue Jul 7 23:32:46 CEST 2009


Hi Xavier,

> Found that having keys actually works:
>
> $someProperty = array('key1' => 'value1', 'key2' => 'value2');
>
> {myObject.someProperty.key1}
Exactly :-) In fact, if your array has numeric keys, the numbers  
should work as well...

Greets
Sebastian


More information about the TYPO3-project-typo3v4mvc mailing list