Re: incorrect resulting array from a multiselect option problem please help

2009-09-16 Thread learning_cake_php
ok..ill try that one..but im out of town...ill try it out soon as i arrive.. thanx a lot; ) On Sep 16, 2:05 am, WebbedIT wrote: > Try this > > input($j.'.OfferedSubject.Course',array > ('multiple'=>true)); ?> > > If the form helper is building the select right, the above will change > it from a

Re: incorrect resulting array from a multiselect option problem please help

2009-09-15 Thread WebbedIT
Try this input($j.'.OfferedSubject.Course', array ('multiple'=>true)); ?> If the form helper is building the select right, the above will change it from a single select to multiple select. --~--~-~--~~~---~--~~ You received this message because you are subscribed

Re: incorrect resulting array from a multiselect option problem please help

2009-09-15 Thread learning_cake_php
sir Webbedit heres my rel: Subject hasMany OfferedSubject OfferedSubject HABTM Course heres my controller without the save: function offeredSubjectAdd($subjectId = null, $lastSec = null, $numSec = null){ debug($this->data); if(isset($this->data['nu

Re: incorrect resulting array from a multiselect option problem please help

2009-09-15 Thread brian
It seems to be a new thread. On Tue, Sep 15, 2009 at 5:08 AM, WebbedIT wrote: > > @ learning_cake_php: I just took ages to submit a reply which seems to > have gone nowhere, did I send it to you via email? (i.e. clicked > 'reply to author') > > > --~--~-~--~~~---~--~

Re: incorrect resulting array from a multiselect option problem please help

2009-09-15 Thread WebbedIT
@ learning_cake_php: I just took ages to submit a reply which seems to have gone nowhere, did I send it to you via email? (i.e. clicked 'reply to author') --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" grou

Re: incorrect resulting array from a multiselect option problem please help

2009-09-15 Thread WebbedIT
As my post states, I do not believe you can save multiple OfferedSubject at once, each having their own HABTM Course. You would need to create a form which produces an array as shown above. Now I am have no idea about your schema as your form obviously includes data from Subject and Section mode

Re: incorrect resulting array from a multiselect option problem please help

2009-09-14 Thread learning_cake_php
oh thank God someone did read my post and answer it. thanx webbedIT! but how could i have the array you presented if i want to maintain the same view as i did on my post? or can you share me any idea on how to go about saving multiple OfferedSubject at once, each having their own HABTM Course. ple

Re: incorrect resulting array from a multiselect option problem please help

2009-09-14 Thread WebbedIT
Wow, that was a long post ... not many people will stck around to read all of that :o) >From what I have read it appears you are trying to save multiple OfferedSubject at once, each having their own HABTM Course. For starters, you simply can't use one save call to do this. You can use saveAll()