title: Codeigniter - How to get url variable value inside contoller function?
body: <p>I have URL like this: <code>http://localhost/sitename/some-post-title/code=24639204963309423</code></p>
  
  <p>Now I have one <code>findUser</code> function in my controller file</p>
  
  <pre><code>public function findUser() {
     // I have tried with $_GET['code']
  }
  </code></pre>
  
  <p>and I am trying to get <code>code</code> variable value inside this function. I have tried with <code>$_GET['code']</code> but did not worked.</p>
  
  <p>Any Idea how to get value inside controller function?</p>
  
  <p>Thanks.</p>