diff --git a/crud/default/controller.php b/crud/default/controller.php index d9ba58e..937d749 100755 --- a/crud/default/controller.php +++ b/crud/default/controller.php @@ -144,7 +144,7 @@ public function actionCreate() if (!$model->save()) { return self::error($model->getErrors()); } - self::createLog(, serialize($model)); + self::createLog(, serialize($model)); return self::ok($model); } @@ -188,7 +188,7 @@ public function actionDelete() } $model->deleted_at = date('Y-m-d H:i:s'); if ($model->update()) { - self::deleteLog(, $id); + self::deleteLog(, $id); return self::ok(); } else { self::error($model->getErrors()); @@ -235,7 +235,7 @@ public function actionRestore() } $model->deleted_at = null; if ($model->update()()) { - self::restoreLog(, $id); + self::restoreLog(, $id); return self::ok(); } else { self::error($model->getErrors()); @@ -293,7 +293,7 @@ public function actionUpdate() } ?> if ($model->save()) { - self::updateLog(, $id); + self::updateLog(, $id); return self::ok($model); } return self::error($model->getErrors());