I don't think I'm talking bout POST data. I'm taking about, through setting a variable via $this->MyModel->find('list').
All the other fields get set directly through $this->data. However, I'm talking specifically about: $this->select('group_id') as compared to: $this->input('group_id', array('type' => 'select')) does. On Tue, Mar 4, 2008 at 9:03 AM, nate <[EMAIL PROTECTED]> wrote: > > $form->select() *does* auto-populate... from POST data. Just like > everything else. So no, this is not a bug. The non-wrapper methods > keep the magic to a necessary minimum. > > > On Mar 4, 1:56 am, Baz <[EMAIL PROTECTED]> wrote: > > Well, that's my question: > > > > Is this is bug (oversight)? $form->text, $form->checkbox both > > autofill, so should I report this? > > > > On Tue, Mar 4, 2008 at 12:34 AM, Samuel DeVore <[EMAIL PROTECTED]> wrote: > > > > > > > On Mon, Mar 3, 2008 at 11:24 PM, Baz <[EMAIL PROTECTED]> wrote: > > > > > > I take it you meant: > > > > $form->select('groups')? > > > > > $groups = $this->MyModel->find('list') > > > $this->set(compact('groups')); > > > > > Is what I was thinking, but I don't think FormHelper::select supports > > > the auto finding of the options array like input does, if you look at > > > the code from the api > > > > > http://api.cakephp.org/1.2/form_8php-source.html#l00491 around line > > > 535 you'll see where that is autofilled from > > > > > in FormHelper::select > > > http://api.cakephp.org/1.2/form_8php-source.html#l01002 you can see > > > that there is no similar feature. So if you want it to work like > > > input you probably need to file an enhancement ticket > > > > > -- > > > -- > > > > > (the old fart) the advice is free, the lack of crankiness will cost you > > > > > - its a fine line between a real question and an idiot > > > > > http://blog.samdevore.com/archives/2007/03/05/when-open-source-bugs-me/ > > > http://blog.samdevore.com/cakephp-pages/my-cake-wont-bake/ > > > http://blog.samdevore.com/cakephp-pages/i-cant-bake/ > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com 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 -~----------~----~----~----~------~----~------~--~---