title: Read value from query string in CodeIgniter
body: <p>I am new to CodeIgniter. I am trying to read values from query string in conventional method not segment.</p>
  
  <p><strong>This is my url.</strong></p>
  
  <p><code>http://localhost/Voyager/Main/UserActivation/?u=6df497644a10241cd89fad80f5c98496</code></p>
  
  <p><strong>Controller:</strong></p>
  
  <pre><code>class Main extends CI_Controller{
  
       public function UserActivation()
      {
          $hash=$this-&gt;input-&gt;get('u', TRUE);
          log_message('debug', $hash, false); 
          $this-&gt;load-&gt;view('Main\view_userActivation');  
      }
  
  }
  </code></pre>
  
  <p>I am trying to read value of 'u' in controller. But this isn't working. I am getting empty value in $hash variable.</p>
  
  <p>Any help is appreciated.</p>