I want location displayed and location submitted. Should I still do
two columns?
On Nov 2, 8:59 am, Jeremy Burns | Class Outfit
<jeremybu...@classoutfit.com> wrote:
> In your find('list') function you have specified the fields to use, and you have only given one field; 'location'. Try changing that to:
> array('id', 'location') so that you have two columns; id & location.
>
> Jeremy Burns
> Class Outfit
>
> jeremybu...@classoutfit.comhttp://www.classoutfit.com
>
> On 2 Nov 2010, at 08:55, Briko03 wrote:
>
> > I have a form that has a select box:
>
> > echo $form->input('location',array('type'=>'select','options'=>
> > $locations));
>
> > The form action populates the select box with locations:
> > $this->set('locations',$this->Result->find('list',array('fields' =>
> > array('location'),'group'=>array('location'))));
>
> > However the problem is that the select box is not taking the
> > "location" field value but the first column value instead. How can I
> > have the select box be populated with the actual field value of
> > location.
>
> > Just to clarify, the field is displaying correctly it is just the
> > values being submitted that are not working.
>
> > Thanks in advance. Also I want to say I really appreciate the help of
> > everyone in this group, you have been a great help!!
>
> > Check out the new CakePHP Questions sitehttp://cakeqs.organd help others with their CakePHP related questions.
>
> > You received this message because you are subscribed to the Google Groups "CakePHP" group.
> > To post to this group, send email to cake-php@googlegroups.com
> > To unsubscribe from this group, send email to
> > cake-php+unsubscribe@googlegroups.com For more options, visit this group athttp://groups.google.com/group/cake-php?hl=en
Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
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?hl=en
No comments:
Post a Comment