title: How to get a single variable attached to the URI?
body: <p>I don't seem to able to acquire a GET variable that is attached to the URI.
  The codes are => at the controller</p>
  
  <pre><code>...
  parse_str($_SERVER['QUERY_STRING'], $_GET);
  ....
  $data['ti'] = $this-&gt;input-&gt;get('hamleno');
  this-&gt;load-&gt;view('anasayfa', $data);
  </code></pre>
  
  <p>The codes are => at the view the link is</p>
  
  <pre><code>...
  &lt;div class="row"&gt;&lt;?php for ($b=0; $b&lt;=(count($hml)-1); $b++) { ?&gt;&lt;a href="&lt;?php echo site_url('welcome/index/hamleno/'.$b.''); ?&gt;"&gt;&lt;?php echo $hml[$b]."  "; ?&gt;&lt;/a&gt; &lt;?php } ?&gt;&lt;/div&gt;
  </code></pre>
  
  <p>The link is working. I have added the </p>
  
  <pre><code>$config['uri_protocol'] = "PATH_INFO";
  </code></pre>
  
  <p>to the config.php file.
  However I am not able to get the $ti variable</p>
  
  <pre><code>if ($ti){
  
      $t=$ti;
  }else{
      $t = $this-&gt;input-&gt;post('t');
      if (!$t) $t = 0;
      if( $this-&gt;input-&gt;post('ileri') ) {
          $t=$t+1;
          if($t&gt;($uz-1)){
              $t=$uz-1;
          }
      } // Forward  button was pressed; 
      if( $this-&gt;input-&gt;post('geri') ) {
          $t=$t-1;
          if($t&lt;0){
              $t=0;
          }
      } // Back button was pressed;
  }
  </code></pre>