[Flow] f:form.select only supporting array of objects, not array of associative arrays
Dominique Feyer
dfeyer at ttree.ch
Fri Sep 19 01:15:48 CEST 2014
You can create object based on your array configuration, a simple object name like systemLanguagesDefinition and pass an array of those object to the select VH. Working with object is always nicer than working with array ;)
The other solution, is build your own select view helper.
Bests,
--
ttree sàrl
Dominique Feyer
Rue du Valentin 34 et demi
CH - 1004 Lausanne
+41 21 312 36 35
dfeyer at ttree.ch
ttree.ch - @ttreeagency - plan d’accès
Le 5 septembre 2014 à 11:50:58, Christian Loock (chl at vkf-renzel.de) a écrit:
Hello,
I am currently trying to populate an Select field with options that come
from the package's Settings.yaml. It is a simple list of arrays, that I
define in the yaml file:
systemLanguages:
-
locale: 'de'
flagCountry: 'de'
name: 'Deutsch'
-
locale: 'en'
flagCountry: 'gb'
name: 'English'
-
locale: 'pl'
flagCountry: 'pl'
name: 'Polska'
If I assign this list of values to my view and feed it to an select
viewhelper, this wont work, because the Viewhelper expects a list of
object, that it can call getters and setters on and wont work with
associative arrays. Is this intende behaviour, or should i report this
as a bug/feature request?
_______________________________________________
Flow mailing list
Flow at lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/flow
More information about the Flow
mailing list