/** * Deletes one category by id * * @param integer $id * @return mixed * @throws ForbiddenHttpException */ public function actionDelete($id) { Category::deleteAll(['id' => $id]); return $this->actionIndex(); }