You need to pass the options to the select method if you don't follow
conventions. Check the API so you kwno what parameter is used to pass the
options array
On Thursday, September 4, 2014 12:40:03 AM UTC+2, Abdelmajid el Ibrahimi
wrote:
>
> I have a controller where i use this statement:
> $this->set('docenten',$this->Docenten->find('list',array('fields' =>
> array('Docenten.voornaam'))));
>
> Then in my view i use:
> echo $this->Form->select('docenten');
>
> But it wont populate the list, What am I doing wrong?
>
> I want a selectbox with value=id and the name = voornaam.
>
>
--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
---
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.