I tried to display request data using $this->data in beforeSave method. But , i don't know why the method is not being called. How can I display posted data in beforeSave method in cakephp model?
Asked
Active
Viewed 311 times
-2
-
Welcome to SO. Before posting question please read [how to ask good questions](http://stackoverflow.com/help/how-to-ask). Help us to help you. – Rahul Mane May 29 '15 at 12:27
-
I have asked question regarding cakephp model . A php developer who is on cakephp framework can easily understand. – fayaz May 29 '15 at 12:37
1 Answers
0
You should add your code in your question. This displays your entity created/updated :
public function beforeSave($event, $entity, $options = array())
{
debug($entity);
die();
}
Jun
- 650
- 1
- 6
- 13