/** * Deletes an existing Testimonial model. * If deletion is successful, the browser will be redirected to the 'index' page. * * @param integer $id * @return mixed * * @throws NotFoundHttpException */ public function actionDelete($id) { $testModel = new Testimonial(); $testModel->findModel($id)->delete(); return $this->redirect('admin'); }