Answer the question
In order to leave comments, you need to log in
Yii yiibooster + yiiheart?
I am using yiiheart 1.2 https://github.com/hscstudio/yiiheart and yiiboster 2.1.1 . But the removal in this add-on does not work. Standard generated controller
public function actionDelete($id)
{
if (Yii::app()->request->isPostRequest)
{
// we only allow deletion via POST request
$this->loadModel($id)->delete();
// if AJAX request (triggered by deletion via admin grid view), we should not redirect the browser
if (!isset($_GET['ajax']))
$this->redirect(isset($_POST['returnUrl']) ? $_POST['returnUrl'] : array('admin'));
}
else
throw new CHttpException(400, 'Invalid request. Please do not repeat this request again.');
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question