Code Igniter controller - can't use uri->segment with function index()?
- by John
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?