Hi
many thanks to all members, you represent an invaluable support for
worldwide CakePHP developers!

This is my problem:
i'm trying to create a new HABTM row, in a "Course" view I coded

                        echo $form->create('Course', array('url' => 
array('action' =>
'view', $course['Course']['id'])));
                        echo $form->input('id');
                        echo $form->input('CoursesTeaching.0.course_id', 
array('type' =>
'hidden', 'value' => $course['Course']['id']));
                        echo $form->input('CoursesTeaching.0.teaching_id');
                        echo $form->input('CoursesTeaching.0.typology_id');
                        echo $form->input('CoursesTeaching.0.obbligatorio');
                        echo $form->end('Submit');

but I get no new row created. I've already used this way to obtain the
creation of hasMany models but seems that with SaveAll you have to
explicit the HABTM model and the new record creation.

Any help is appreciated.

Thanks
Nicola
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to