0
有没有人知道如何让pre_save()
或pre_validate()
在我的模型中工作? 我在模型中有下面的代码,但它永远不会被调用。FuelPHP - pre_save()在模型上不起作用
protected function pre_validate($data)
{
//die("asefeg");
$data->idRegistrant = Session::get('idRegistrant', null);
return $data;
}
中找到有关我的BaseModel扩展\ Orm \ Model和pre_save仅适用于扩展\ Crud \ Model的类 – JupiterN