I have the following question:

I'm saving in the controller with the method:

$this->Model->save($this->data);

But I don't set $this->Model->data explicitly.


How can I access to the data array in the afterSave callback? Can I
use $this->data if that array wasn't set explicitly with $this->Model-
>data = $this->data in the controller?

I need the data in the afterSave because I have to handle a file
upload associated to the model.
--~--~---------~--~----~------------~-------~--~----~
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