I don't know that you do that easily. Why not just create the select
list manually instead of using the helper?

On Tue, Mar 24, 2009 at 8:24 PM, JamesF <usaexportexpe...@gmail.com> wrote:
>
> hello,
>
> I am trying to  generate a select dropdown from an array, $types. Very
> easy to do but i need the <option value=" "> part to read something
> other than the key value of the array $types.  i.e. 0,1,2,3.
>
> $types
> ----------
> Array
> (
>    [0] => test data
>    [1] => test data
> )
>
> echo $form->select('option_field_label', $types, null, null);
>
> will yield this output:
>
> <option value="0">test data</option>
> <option value="1">test data b</option>
>
>
> I want:
>
> <option value="test data">test data</option>
> <option value="test data b">test data b</option>
>
>
> in php normally you can do this in a foreach loop but I was hoping
> there was a way this could be done in cakephp! thanks
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to