Saturday, January 26, 2013

Re: CakePHP 2.2.5 HABTM Edit view not showing previously selected values as selected.

print_r your request data and ensure that the schema is matching your intended inputs

==
print_r($this->request->data);
==



On Jan 26, 2013, at 6:42 PM, Penny Coders <dtk077@gmail.com> wrote:

Please note, it DOES show the options, but NOT the previously selected values, compared to another site, on exactly the same procedure does work...

On Sunday, January 27, 2013 4:41:46 AM UTC+2, Penny Coders wrote:
Hey,

Thanks, i did try that, no luck tho' 

Anybody any more ideas?

Best Regards,

Alex.

On Saturday, January 26, 2013 9:49:52 PM UTC+2, cricket wrote:
On Fri, Jan 25, 2013 at 8:03 PM, Penny Coders <dtk...@gmail.com> wrote:

<?php echo $this->Form->input('ShippingMethod',array('label'=>false,'multiple'=>'multiple','class'=>'chzn-select validate[required]','div'=>false,'data-placeholder'=>'Shipping methods'));?>

You've specified the model but not the key.

$this->Form->input('ShippingMethod.id', ... 

--
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 post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
 
 

No comments: