Hi there,

i have a Select-Box which is created by the selectTag-Helper.
The array is populated witht the function generateList. Everything
works so far. But when the generateList-functions returns nothing, the
whole Select-Box disappears.

Here is my code in the controller:
$list = $this->Contact->generateList(array (id' => $id), 'name ASC',
null,'{n}.Contact.name', '{n}.Contact.name');

$this->set('list', $list);

view:
echo $html->selectTag('Contact/list', $list, null, array( 'size' =>
'18', 'style'=> 'width:23ex;'));


How can I tell cake to shoe the select-Box, even when it's empty?


Thanks, Felix


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