public function view_new_declaration_1($id,$token=''){
$this->isLoggedIn();
$dec_info = $this->Model_admin->get_new_declaration_by_id($id)->row();
$data_admin = array(
'token' => $token,
'admin_info' => $this->model->getAdminInfo($this->session->userdata('email'))->row(),
'dec_info' => $dec_info,
'ia' => $this->Model_admin->get_ia_by_id($dec_info->prop_id)->result(),
'ib' => $this->Model_admin->get_ib_by_id($dec_info->prop_id)->result(),
'ii' => $this->Model_admin->get_ii_by_id($dec_info->prop_id)->result(),
'iiia' => $this->Model_admin->get_iiia_by_id($dec_info->prop_id)->result(),
'iiib' => $this->Model_admin->get_iiib_by_id($dec_info->prop_id)->result()
);
$data_applicant = array(
// get data using email
'token' => $token,
'applicant_info' => $this->model->getApplicantInfo($this->session->userdata('email'))->row(),
'dec_info' => $dec_info,
'ia' => $this->Model_admin->get_ia_by_id($dec_info->prop_id)->result(),
'ib' => $this->Model_admin->get_ib_by_id($dec_info->prop_id)->result(),
'ii' => $this->Model_admin->get_ii_by_id($dec_info->prop_id)->result(),
'iiia' => $this->Model_admin->get_iiia_by_id($dec_info->prop_id)->result(),
'iiib' => $this->Model_admin->get_iiib_by_id($dec_info->prop_id)->result()
);
if ($this->session->userdata('position_id') == '2') { // Administrator
$this->load->view('includes/admin_header', $data_admin);
$this->load->view('applicant/properties/view_new_declaration_1', $data_admin);
}
if ($this->session->userdata('position_id') == '3') { // Applicant
$this->load->view('includes/admin_header', $data_applicant);
$this->load->view('applicant/properties/view_new_declaration_1', $data_applicant);
}
else {
$this->logout();
}
}
Я просто новичок в CodeIgniter
Пожалуйста помоги. Я так отчаялся. заранее спасибо
Хотите отобразить следующую информацию, но это сообщение об ошибке показывает
Что мне делать?