If there's no relation betweeen the two and you really need it, put this incide your model:
loadModel('ModelB'); $ModelB = new ModelB(); And now you can use $ModelB as any normal model. -MI --------------------------------------------------------------------------- Remember, smart coders answer ten questions for every question they ask. So be smart, be cool, and share your knowledge. BAKE ON! blog: http://www.MarianoIglesias.com.ar -----Mensaje original----- De: cake-php@googlegroups.com [mailto:[EMAIL PROTECTED] En nombre de teesea Enviado el: Jueves, 22 de Febrero de 2007 11:25 a.m. Para: Cake PHP Asunto: accessing model from inside another model I'm trying to access a model from another model when I perform a save, there is no association between the two, but in the system i am trying to complete one does have a logically effect on the other and I would like to run code in one model which then runs code on another. Anyone know how to do this? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com 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 -~----------~----~----~----~------~----~------~--~---