For situations that the data model does not contain created* and updated*:
public function init()
{
if (isset(Yii::$app->user->isSuperAdmin) and Yii::$app->user->isSuperAdmin) {
if ($model instanceof KHanModel or is_array($model)) {
$this->audit = true;
}else {
$this->audit = false;
}
}
...
Line 247 when the model does not extend KHanModel:
} else {
return 'ساختار جدول این گزینه را پشتیبانی نمیکند.';
throw new \Exception('Model for ActionColumn should inherit ' . KHanModel::class);
}
For situations that the data model does not contain created* and updated*:
Line 247 when the model does not extend
KHanModel
: