Example #1
0
 /**
  * Deletes an existing Category model.
  * If deletion is successful, the browser will be redirected to the 'index' page.
  * @param integer $id
  * @return mixed
  */
 public function actionDelete($id)
 {
     $request = wanhunet::$app->request;
     return Category::updateAll(['status' => Category::STATUS_DELETED], ['id' => $request->post("id")]);
 }