@Andrei

Not sure if it will help but I've been using $form->input myself and haven't
had any real issues.

echo $form->input('User.gender', array(
 'label' => 'Gender:',
 'empty' => '-----',
                                                         'selected' => 'M',
 'options' => array(
           'M' => 'Male',
   'F' => 'Female'
    )
 )
  );

- Ed
On Mon, May 3, 2010 at 6:01 AM, Andrei Mita <andrei.m...@gmail.com> wrote:

> I've tried what you suggested and I doesn't work. I believe it's because
> the list of options is static and defined in the view. In some other view,
> where the select is populated from the DB, it works and I don't even need to
> specify the Model :)
>
> Thanks a lot
>
>
> On Sun, May 2, 2010 at 10:21 AM, WebbedIT <p...@webbedit.co.uk> wrote:
>
>> Glad u got it working :o)
>>
>> If you change the file name to Profile.group, you should be able to
>> remove the 'selected' =>$this->data['Profile']['group'] attribute.
>>
>> P.S. to show the input without a label using form->input you just
>> supply label=>false.  I personally much prefer using the same method
>> as much as possible and form->input very rarely lets me down.
>>
>> HTH
>>
>> Paul
>>
>> Check out the new CakePHP Questions site http://cakeqs.org and help
>> others with their CakePHP related questions.
>>
>> 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+unsubscr...@googlegroups.com<cake-php%2bunsubscr...@googlegroups.com>For
>>  more options, visit this group at
>> http://groups.google.com/group/cake-php?hl=en
>>
>
>  Check out the new CakePHP Questions site http://cakeqs.org and help
> others with their CakePHP related questions.
>
> 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+unsubscr...@googlegroups.com<cake-php%2bunsubscr...@googlegroups.com>For
>  more options, visit this group at
> http://groups.google.com/group/cake-php?hl=en
>

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en

Reply via email to