> $this->data = $this->Hotel->Hotelinfo->add($hotelmaster_id,$this->Hotel->id);
calls the function add() in your model Hotelinfo - not in the controller.
So as Martin has suggested, move the code for retriving or adding your
information into the model and your should be done.
On Thu, Oct 9, 2008 at 12:09 PM, Liebermann, Anja Carolin
<[EMAIL PROTECTED]> wrote:
>
> Hello Siegfried,
>
> Now I try it this way:
> In my controller hotels_controller.php I have set:
> var $uses = array('Hotel','Hotelinfo');
>
> And replaced
> $this->data =
> $this->Hotelinfo->requestAction('hotelinfomasters/getHotelinfomaster/'.$hotelmaster_id);
> By
> $this->data = $this->Hotel->Hotelinfo->add($hotelmaster_id,$this->Hotel->id);
>
> Now I get an error:
> $sql = "add"
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---