public function _check_user($str) { if (!$this->Staffs_model->validateStaff($str)) { $this->form_validation->set_message('_check_user', $this->lang->line('error_no_user_found')); return FALSE; } return TRUE; }