Wednesday, September 3, 2014

Select Option

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 cake-php+unsubscribe@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.

No comments: