title: Codeigniter $this->load->view to a Particular Section of page (Data-Toggle - Tab)
body: <p>I have this admin panel where I use different data-toggle tabs.</p>
  
  <p>In CI(3), if I go with <code>redirect('user/dashboard#new');</code> , it redirects me to correct section of view but not with form_validation errors.</p>
  
  <p>And if I try <code>$this-&gt;dashboard('user/dashboard#new');</code> it renders the errors but leads me to the wrong section of page (not at #new).</p>
  
  <p>I have just started developing with CI and looking for some help from seniors.</p>
  
  <p>Thanks in advance.</p>
  
  <p>Controller (user)</p>
  
  <pre><code>public function dashboard() {
  if($this-&gt;session-&gt;userdata('is_logged_in')){
  $data['homepage'] = '../../templates/vacations/users/dashboard';
  $this-&gt;load-&gt;view('template_users',$data);
  }else{
  $data['session_error']='Either the session has expired or you have tried to access this page directly';
  $this-&gt;load-&gt;view('../../templates/vacations/headfoot/header-login');
  $this-&gt;load-&gt;view('../../templates/vacations/users/session-error', $data);
  $this-&gt;load-&gt;view('../../templates/vacations/headfoot/footer-login');
  }}
  </code></pre>
  
  <p>Form Validation</p>
  
  <pre><code>if($this-&gt;form_validation-&gt;run() == FALSE)
  {
  $this-&gt;dashboard('user/dashboard#new');
  } else {
  $this-&gt;load-&gt;model('model_users');
  if($query = $this-&gt;model_users-&gt;insert_property_details())
  {
  redirect('user/dashboard#new'); 
  } else {
  redirect('user/dashboard#new');
  }}}
  </code></pre>