title: Too few arguments to function Main(CodeIgniter)
body: <pre><code>public function view_new_declaration_1($id,$token=''){
      $this-&gt;isLoggedIn();
      $dec_info = $this-&gt;Model_admin-&gt;get_new_declaration_by_id($id)-&gt;row();
      $data_admin = array(
      'token' =&gt; $token,
      'admin_info' =&gt; $this-&gt;model-&gt;getAdminInfo($this-&gt;session-&gt;userdata('email'))-&gt;row(),
      'dec_info' =&gt; $dec_info,
      'ia' =&gt; $this-&gt;Model_admin-&gt;get_ia_by_id($dec_info-&gt;prop_id)-&gt;result(),
      'ib' =&gt; $this-&gt;Model_admin-&gt;get_ib_by_id($dec_info-&gt;prop_id)-&gt;result(),
      'ii' =&gt; $this-&gt;Model_admin-&gt;get_ii_by_id($dec_info-&gt;prop_id)-&gt;result(),
      'iiia' =&gt; $this-&gt;Model_admin-&gt;get_iiia_by_id($dec_info-&gt;prop_id)-&gt;result(),
      'iiib' =&gt; $this-&gt;Model_admin-&gt;get_iiib_by_id($dec_info-&gt;prop_id)-&gt;result()
      );
  
      $data_applicant = array(
              // get data using email
      'token' =&gt; $token,
      'applicant_info' =&gt; $this-&gt;model-&gt;getApplicantInfo($this-&gt;session-&gt;userdata('email'))-&gt;row(),
      'dec_info' =&gt; $dec_info,
      'ia' =&gt; $this-&gt;Model_admin-&gt;get_ia_by_id($dec_info-&gt;prop_id)-&gt;result(),
      'ib' =&gt; $this-&gt;Model_admin-&gt;get_ib_by_id($dec_info-&gt;prop_id)-&gt;result(),
      'ii' =&gt; $this-&gt;Model_admin-&gt;get_ii_by_id($dec_info-&gt;prop_id)-&gt;result(),
      'iiia' =&gt; $this-&gt;Model_admin-&gt;get_iiia_by_id($dec_info-&gt;prop_id)-&gt;result(),
      'iiib' =&gt; $this-&gt;Model_admin-&gt;get_iiib_by_id($dec_info-&gt;prop_id)-&gt;result()
      );
  
  
      if ($this-&gt;session-&gt;userdata('position_id') == '2') { // Administrator
          $this-&gt;load-&gt;view('includes/admin_header', $data_admin);
          $this-&gt;load-&gt;view('applicant/properties/view_new_declaration_1', $data_admin);
      }
      if ($this-&gt;session-&gt;userdata('position_id') == '3') { // Applicant
          $this-&gt;load-&gt;view('includes/admin_header', $data_applicant);
          $this-&gt;load-&gt;view('applicant/properties/view_new_declaration_1', $data_applicant);
      }
       else {
          $this-&gt;logout();
      }
  }
  </code></pre>
  
  <p>I'm just new in CodeIgniter
  Please help. I'm so desperate. Thank you in advance
  Wanna display the following info but that error message shows
  What should I do?</p>