Commit c618943f authored by Shakarim Sapa's avatar Shakarim Sapa

- Добавлен метод удаления записи

parent e94951eb
......@@ -62,6 +62,16 @@ class TemplateAdminController extends AdminController {
);
}
/**
* @param $id
* @return \yii\web\Response
*/
public function actionDelete($id){
$this->findModel($id)->delete();
return $this->redirect(['manage']);
}
/**
* @param $id
* @return null|MessageTemplate
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment