Re: showEmpty?

2009-10-04 Thread Miles J
: [..snip..] This is what I have: echo $form-select('State', array('NJ' = New Jersey', 'NY' = 'New York')); I want to remove the empty option of this select box. According to the API I need to add $showEmpty = false to the code above.. but where do I add it? I tried in several different

RE: showEmpty?

2009-10-04 Thread Dave Maharaj :: WidePixels.com
not select a State Alabama is automatically saved. $selected = array('option' = 'Select your State', 'value' = '0')? Thanks, Dave -Original Message- From: Miles J [mailto:mileswjohn...@gmail.com] Sent: October-04-09 7:35 AM To: CakePHP Subject: Re: showEmpty? You should only be using

Re: showEmpty?

2009-10-04 Thread John Andersen
', 'value' = '0')? Thanks, Dave -Original Message- From: Miles J [mailto:mileswjohn...@gmail.com] Sent: October-04-09 7:35 AM To: CakePHP Subject: Re: showEmpty? You should only be using input(). echo $form-input('State', array('options' = array('NJ' = New Jersey', 'NY' = 'New

Re: showEmpty?

2009-10-04 Thread brian
' = 'Select your State', 'value' = '0')? Thanks, Dave -Original Message- From: Miles J [mailto:mileswjohn...@gmail.com] Sent: October-04-09 7:35 AM To: CakePHP Subject: Re: showEmpty? You should only be using input(). echo $form-input('State', array('options' = array('NJ' = New

RE: showEmpty?

2009-10-04 Thread Dave Maharaj :: WidePixels.com
Thanks, Will give it a try. Dave -Original Message- From: brian [mailto:bally.z...@gmail.com] Sent: October-04-09 1:29 PM To: cake-php@googlegroups.com Subject: Re: showEmpty? I believe it's 'empty = 'Select your State'. If the param is false, null, or the empty string, Cake

showEmpty?

2009-10-03 Thread gimperdan...@gmail.com
I am new to cake... i have been doing a lot of reading, but somethings i still can't figure out. This is what I have: echo $form-select('State', array('NJ' = New Jersey', 'NY' = 'New York')); I want to remove the empty option of this select box. According to the API I need to add $showEmpty

Re: showEmpty?

2009-10-03 Thread Gonzalo Servat
On Sun, Oct 4, 2009 at 7:21 AM, gimperdan...@gmail.com gimperdan...@gmail.com wrote: [..snip..] This is what I have: echo $form-select('State', array('NJ' = New Jersey', 'NY' = 'New York')); I want to remove the empty option of this select box. According to the API I need to add $showEmpty

$form-input as dateTime wrapper doesn't map correctly the dateTime showEmpty option

2008-07-05 Thread operativo
in the dateTime options that the default behaviour is to show an empty default value (as showEmpty = true is the default), so I didn't pass anything because I want an empty value. By the way if I call it this way I get a default value in it. So I tried to call the input() this way: echo $form-input

Re: passing showEmpty from $form-input to a select

2008-04-11 Thread Dardo Sordi Bogado
, selected=$preSelect- select(institution_id)),null,null,Please Select); and echo $form-input('institution_id',array(label=Institution *, class=input, div=input mandatory, selected=$preSelect- select(institution_id), showEmpty=Please Select...)); but try as I might, I can't get $form