I'm gonna take a wild guess here, but I think he's talking about
autopouplation, eg:

controller: $this->set(compact('departments'));

view:
$form->select('department_id')

as apposed to:
$form->input('department_id', array('type' => 'select'));

I stumbled upon this over the weekend. It took me about 2 hours before
I realized that with prepopulated data, you must use $form->input().

On Mon, Mar 3, 2008 at 10:00 PM, nate <[EMAIL PROTECTED]> wrote:
>
>  They're two completely different methods with two completely different
>  purposes.  Why would you expect them to do the same thing?
>
>
>
>  On Mar 3, 7:31 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
>  > I got a question for the usage of FormHelper->select() and 
> FormHelper->input(). I know that input() outputs a div wrapper containing a 
> label
>  >
>  > and the input element while select() only outputs the select tags. Why
>  > is that? Shouldn't select() does the same thing (with a div wrapper
>  > and a label)? I feel they should be consistent in terms of what to
>  > expect from the output.
>  >
>  > Thanks.
>  >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to