In my cakephp project, I use afterSave() method of a model class. In this method, I want to call another method that is located in app_controller file.
class MyModel extends AppModel {
var $name = MyModel ;
function afterSave($created) {
$this->MyController->updateData();
}
}
Here updateData() is located in app_controller file, which is extended by MyController controller.
以上法典没有发挥作用,因此,如何真正地将最新数据称为Data(Data)案件。
Please guide.
增 编