title: CodeIgniter: Page not found when passing parameters to a controller?
body: <p>I'm trying to pass parameters to a control in codeigniter, but I'm getting 404 page not found error, I don't get it, I did what the guide says: <a href="http://codeigniter.com/user_guide/general/controllers.html#passinguri" rel="nofollow noreferrer">http://codeigniter.com/user_guide/general/controllers.html#passinguri</a></p>
  
  <p>When I remove the params in the index function and just access the controller everything works fine, but I can't pass a value to it...</p>
  
  <p>Here is the code the way I'm trying to send a param:</p>
  
  <blockquote>
    <p><a href="http://mysite/123" rel="nofollow noreferrer">http://mysite/123</a></p>
  </blockquote>
  
  <pre><code>&lt;?php
  class Main extends Controller {
  
      function index($username) {
  
          echo $username;
  
      }
  
  }
  ?&gt;
  </code></pre>
  
  <p>How can I get more info regarding this error from codeigniter?</p>
  
  <p>Thank you.</p>