title: Code Igniter, multiple passing parameters in method
body: <p>I have an method in Code Igniter, and want access using this URL "kuesioner/test/school_id/6/parent_id/7"
  I using _remap function to dynamic order of params in URL. Code from <a href="https://stackoverflow.com/questions/8870913/passing-multiple-optional-parameter-value-pairs-with-user-defined-pair-order">this</a>.
  This is my code :</p>
  
  <pre><code>public function test($school_id, $parent_id)
  {
      echo "&lt;pre&gt;";
      print_r($schoold_id);
      print_r($parent_id);
      echo "&lt;/pre&gt;";
  }
  
  public function _remap($method, $params)
  {
      $map = array();
      for( $i = 1; $i &lt; count( $params ); $i = $i + 2 )
      {
          $map[$params[$i-1]] = $params[$i];
      }
  
      if( $method[0] != '_' &amp;&amp; method_exists( $this, $method ))
          return $this-&gt;$method($map);
  }
  </code></pre>
  
  <p>Getting error on my controller that said Missing argument 2 for Kuesioner::test() ($parent_id is missing), it return array of map into single variable $school_id in test controller.</p>
  
  <p>print_r($school_id) exactly show </p>
  
  <pre><code>  Array
    (
      [school_id] =&gt; 6
      [parent_id] =&gt; 7
    )
  </code></pre>
  
  <p>How to solve this, so that value can be put into every right variable..</p>