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
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
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
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')
> >
>
--~--~-~--~~~---~--~
@ 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
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
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
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()