On 1/30/07, Sergei <[EMAIL PROTECTED]> wrote: I have it in my Tag model and use it in my controller.
> Where do you place this function - in beforesave of model Photo? You can place it there but all references to $this will change to $this->tag > And what is > > // You can do $this->create() here See the create() method in Model - when you do saves in a loop you need to either set the id manually but the cakePHP way is to call create() Cheers Tarique -- ============================================================= PHP for E-Biz: http://sanisoft.com Cheesecake-Photoblog: http://cheesecake-photoblog.org ============================================================= --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Cake PHP" 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 -~----------~----~----~----~------~----~------~--~---
