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 <nano...@gmail.com> 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 cake-php@googlegroups.com
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---
No comments:
Post a Comment