public function actionDeleteSelected() { if (isset($_GET['ajax'])) { if (isset($_POST) && isset($_POST['stu_job_id']) && !empty($_POST['stu_job_id'])) { try { if (FavoriteStudentJobTitle::deleteResumes($_POST['stu_job_id'], Yii::app()->user->id)) { $this->renderPartial('//common/_alerts', array('type' => 'success', 'msg' => Yii::t('app', 'msg.success.del_fav_resumes'))); } } catch (Exception $e) { $this->renderPartial('//common/_alerts', array('type' => 'danger', 'msg' => Yii::t('app', 'msg.error.del_fav_resumes'))); } return; } $this->renderPartial('//common/_alerts', array('type' => 'danger', 'msg' => Yii::t('app', 'msg.error.resumes_not_found'))); } }