title: Codeigniter routes for passing get parameter to index function
body: <p>I have a url <code>www.mywebsite.com/store/123456</code></p>
  
  <p>where store is my controller class and I have a index function in it where Im getting the value after after store ,ie 123456.But im not able to achieve it.</p>
  
  <p>As found online,I have tried adding this to routes <code>$route['store/(:any)'] = 'store/index';</code> also tried</p>
  
  <pre><code>$route['store/(:any)'] = 'store/index/$1';
  </code></pre>
  
  <p>but doesn't seem to work.Please help me out.</p>
  
  <p>In controller index function is</p>
  
  <pre><code>public function index()
      {
          echo $this-&gt;uri-&gt;segment(1);
      }
  </code></pre>
  
  <p>But its not working.Pleae help</p>