title: Can't access uri segment in controller of codeigniter
body: <p>What would be the best way to get uri segment via parameter in controller? i have used following code but not working </p>
  
  <p>uri as </p>
  
  <blockquote>
    <p><a href="http://localhost/home/23" rel="nofollow noreferrer">http://localhost/home/23</a></p>
  </blockquote>
  
  <pre><code>class Home extends CI_Controller
  {
  
  
     public function index($para){
      echo $para;
     }
  }
  </code></pre>
  
  <p>Above uri results in 404 page not found error.How to solve such problem and get the id as parameter in index function.</p>