You should only be using input().
echo $form-input('State', array('options' = array('NJ' = New
Jersey', 'NY' = 'New
York'), 'empty' = false));
On Oct 3, 7:33 pm, Gonzalo Servat gser...@gmail.com wrote:
On Sun, Oct 4, 2009 at 7:21 AM,
gimperdan...@gmail.comgimperdan...@gmail.com wrote:
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
', '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
' = '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
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
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