Re: MySQL Enum Values
enums are not supported by cake
at least not the way you describe i guess
i usually use
http://www.dereuromark.de/2010/06/24/static-enums-or-semihardcoded-attributes/
On 1 Jun., 20:43, Schemer <illescas....@gmail.com> wrote:
> 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
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home