title: How to pass parameters in index function in codeigniter
body: <p>here's an example of url: 
  <a href="http://www.example.com/search/search-keyword" rel="noreferrer">http://www.example.com/search/search-keyword</a></p>
  
  <p>I am trying to make this work, I removed the index.php using .htaccess, search is the controller and I want to pass a parameter in the index method. </p>
  
  <p>this is currently what it looks like:</p>
  
  <pre><code>class Search extends CI_Controller{
  
      function index($param){
          echo $param;
      }
  
  }
  </code></pre>
  
  <p>any suggestions? I can't seem to make it work</p>