You'd do that in your view:
$form->input('article', array('empty' => true));
or
$form->input('article', array('empty' => 'Please select an article'));
On Feb 7, 2008 9:29 AM, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> I migrated to cake 1.2 and i have a little problem with the new list
> creation.
> Before, that was easy to let a blank element il front of the list.
> But now, with this code:
>
> $articles = $this->Article->find("all", array('fields' =>
> array('Article.id','Article.titre') ));
> $result =
> Set::combine($articles,'{n}.Article.id','{n}.Article.titre');
>
> How can i do the same thing??
>
> Thanks for your help
>
> Gil
>
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---