Try this in your controller:

$this->set('selectedTopics',
array_reverse($this->Topic->generateList('id')));

Then in your view:

$html->selectTag('Topic/Topic', $topics, $selectedTopics,
array('multiple' =>
'multiple'))

I believe that is how I solved it in the past. The select tag expects
the ids to be in the keys of the array, so you have to use
array_reverse.


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