Wednesday, June 1, 2011

MySQL Enum Values

Hi all,

In my view i want to display all the options of an enum typed field i
have in a MySQL database. I would like it to be a drop down menu. But
im not sure how to extract all of the values the enum type contains.
Basically i want to do something like this
$values=$this->data['Model']['field']->find('list');

But you cannot call find on a non object.

Any help would be great thanks

--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php

No comments: