Hi Lance,

hahaha, that is an excellent solution!   thank you, that works great,
building the array before the item...

one of these days i'll get the hang of programming...

=]


On Sep 23, 11:09 pm, Lance Willett <[EMAIL PROTECTED]> wrote:
> > i’m trying to just create a “selected” option
> > basically i just want the “Yes” option to be the default
>
> Hi slimcady,
>
> There are two approaches I can think of:
>
> 1) Set $showEmpty to false to automatically make the first option be
> "selected" (removes the empty option).
> 2) Build an array of the options, then choose the array item to be
> selected.
>
> See my examples:http://bin.cakephp.org/saved/37784.
>
> I'm assuming you are using Cake version 1.1.x.x, otherwise the
> "selectTag" is deprecated in 1.2.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to