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
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
Thanks a lot :)
On 19 sep, 16:07, dr. Hannibal Lecter [EMAIL PROTECTED] wrote:
In 1.2, allform/input related stuff has been moved to FormHelper:
http://api.cakephp.org/class_form_helper.html
I assume you need the select:
i’m trying to just create a “selected” option and currently this is
what i have:
$html-SelectTag(’Event/is_private’, array(”Y” = “Yes”, “N” =
“No” ), array(”tabindex” = 4));
basically i just want the “Yes” option to be the default, and i can’t
seem to wrap my mind around the idea of $optionAttr
I have those code below in CakePHP 1.1, but selectTag does not exist
in CakePHP 1.2, how could I modify for the new version? Thanks a lot!
echo $html-selectTag(
'magasin',
$tabMagasin,
0,
array(
'id'=magasin,
'class'=liste,
In 1.2, all form/input related stuff has been moved to FormHelper:
http://api.cakephp.org/class_form_helper.html
I assume you need the select:
http://api.cakephp.org/class_form_helper.html#5171e675468c9665db0653c165b6c89c
Hope that helps ;)
On Sep 19, 10:43 am, Yuris [EMAIL PROTECTED] wrote: