public function actionHire($stu_job_id) { if (isset($stu_job_id)) { $resumeToHire = StudentJobTitle::getResumeToHire($stu_job_id); if ($resumeToHire != null) { if ($resumeToHire->hire(Yii::app()->user->id)) { $this->renderPartial('/common/_alerts', array('type' => 'success', 'msg' => Yii::t('app', 'msg.success.hire_resume'))); } else { $this->renderPartial('/common/_alerts', array('type' => 'danger', 'msg' => Yii::t('app', 'msg.error.hire_resume'))); } } else { $this->renderPartial('/common/_alerts', array('type' => 'danger', 'msg' => Yii::t('app', 'msg.error.resume_not_found'))); } } }