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