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