Seems to work:
$this->Model->method()



RyOnLife wrote:
> 
> I have the same question (using Cake 1.2). Any thoughts? Thanks.
> 
> 
> Mithu wrote:
>> 
>> 
>> I want to wirte a afterSave() function in app_controller so that afery
>> every save operation for all models of the application,  i can insert
>> LAST_INSERTED id to another table, Is it possible with cake 1.1?
>> 
>> function afterSave() {
>> 
>>      $this->AnotherModel->updateStatus($this->{$modelClass}); // This is
>> not working
>> 
>>      return parent::afterSave();
>> 
>> }
>> 
>> >> 
>> 
>> 
> 
> 

-- 
View this message in context: 
http://n2.nabble.com/getting-another-model-inside-afterSave%28%29--cake-1.1-tp1112535p2338634.html
Sent from the CakePHP mailing list archive at Nabble.com.


--~--~---------~--~----~------------~-------~--~----~
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