Monday, June 20, 2011

Re: Select box broken after upgrade

You have added a $ before the variable name in the compact statement. Remove it and replace it with exactly what I sent you.

On 20 Jun 2011, at 07:27, CRUSH wrote:

> Jeremy,
> Not working. I changed it to:
>
> :::: Controller ::::
> $mediaTypes = $this->Media->MediaType->find('list');
> $this->set(compact('$mediaTypes'));
>
> :::: View ::::
> echo $this->Form->input('media_type_id');
>
> and made the model change. Here is what it is outputting:
> <div class="input select">
> <label for="MediaMediaTypeId">Media Type</label>
> <select name="data[Media][media_type_id]" id="MediaMediaTypeId">
> </select>
> </div>
>
> --
> 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

--
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


Real Estate