For progeny:

$this->set('foo',$this->Foo->find('list']));
if (empty($this->data[$name])) {
  $this->set('selectedFoo' array());
} else {
  $this->set('selectedFoo', Set::combine($this-
>data[$name],'{n}.id','{n}.name'));
}


On Jan 4, 3:23 pm, Damon <[EMAIL PROTECTED]> wrote:
> I used to create my drop-down lists for forms using:
>
> $select = $this->Model->generateList();
> $selected = $this->_selectedArray($modelData);
>
> What is the replacement for this?

--~--~---------~--~----~------------~-------~--~----~
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