try adding
if (!$list){$list=array();}
in the controller

then you are not passing false to the select  tag

sam d

note this is not tested

On 12/12/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> 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
>
>
> >
>


-- 
==
S. DeVore
(the old fart) the advice is free, the lack of crankiness will cost you

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