Using the form helper in Cakephp 1.3, I'm trying to display a list (drop-down list) which contains several duplicates value fields (in <option>
tag of course), but cake seems not to want to let me doing it, and outputs only the first occurrence of each value.
For instance, here's the 'options' array of the $form->input:
array(
0 => 'description 0',
0 => 'description 1',
0 => 'description 2',
1 => 'description 3'
);
Which will output something like:
<select>
<option value="0">description 0</option>
<option value="1">description 3</option>
</select>
And I'm looking for this result:
<select>
<option value="0">description 0</option>
<option value="0">description 1</option>
<option value="0">description 2</option>
<option value="1">description 3</option>
</select>
Cheers,
Nicolas.