Code Igniter controller - can't use uri->segment with function index()?

Posted by John on Stack Overflow See other posts from Stack Overflow or by John
Published on 2010-03-29T22:11:40Z Indexed on 2010/03/29 22:13 UTC
Read the original article Hit count: 205

Filed under:
|

I'm working with code igniter and for some reason, the url http://mysite.com/account/100 gives me a 404 error. Here's what my controller looks like.

   class account extends Controller {


    function account()
    {
      parent::Controller();
    }

    function index()
    {
      echo $this->uri->segment(2);
    }

Any idea what's wrong?

© Stack Overflow or respective owner

Related posts about codeigniter

Related posts about controller