title: codeigniter redirect to another directory view
body: <p>How can I redirect to another directory view 
  I have two directories in views directory as </p>
  
  <pre><code>views-&gt;
       public-&gt;
            login.php
        admin-&gt;
             admin_panel.php
  </code></pre>
  
  <p>in the controller, I want to redirect page if successful then </p>
  
  <p>admin->adminpanel.php
  else
  public->login</p>
  
  <pre><code>if($this-&gt;form_validation-&gt;run()){
  
      $this-&gt;load-&gt;view('admin/admin_panel');
  
  }
  else{
          $this-&gt;load-&gt;view('public/admin_login');
  }   
  </code></pre>