Re: HtmlHelper selectTag

2008-09-24 Thread Lance Willett
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

Re: HtmlHelper selectTag

2008-09-24 Thread slimcady
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

Re: HtmlHelper::selectTag does not exist in CakePHP 1.2

2008-09-23 Thread Yuris
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:

HtmlHelper selectTag

2008-09-23 Thread slimcady
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

HtmlHelper::selectTag does not exist in CakePHP 1.2

2008-09-19 Thread Yuris
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,

Re: HtmlHelper::selectTag does not exist in CakePHP 1.2

2008-09-19 Thread dr. Hannibal Lecter
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: