title: Redirect to another controller in Codeigniter
body: <p>I am working on project with Codeigniter. I am stuck in controller problems. Here is my folder schema looks like :</p>
  <pre><code>application
   /controller
    /management
      dashboard_controller.php // Dashboard Management
    /administrator
      dashboard_controller.php // Dashboard Administrator
  </code></pre>
  <p>I tried to access <em><strong>dashboard_controller.php</strong></em> using <em><strong>redirect()</strong></em> function.
  Here is my Controller :</p>
  <pre><code>...
  else{
     $username = $this-&gt;input-&gt;post('username');
     $password = $this-&gt;input-&gt;post('password');
  
     if($this-&gt;login_model-&gt;get_user_login('$username', '$password')){
        redirect('management/dashboard_controller/index');
  </code></pre>
  <p>Here is my Model :</p>
  <pre><code>public function get_user_login($username, $password)
  {
      $this-&gt;db-&gt;select('password');
      $this-&gt;db-&gt;from('users');
      $this-&gt;db-&gt;where('username', $username);
      $hash = $this-&gt;db-&gt;get()-&gt;row('password');
      return $this-&gt;verify_hash($password, $hash);
  }
  </code></pre>
  <p>But, it doesn't works. Can you guys explain to me? Or Codeigniter routes doesn't support such configuration? Thank you.</p>