links in codeigniter

Posted by Patrick on Stack Overflow See other posts from Stack Overflow or by Patrick
Published on 2010-03-21T00:36:19Z Indexed on 2010/03/21 0:41 UTC
Read the original article Hit count: 247

Filed under:

hi All,

I'm experimenting with codeigniter but don't really understand how links work.

for example, I have a link like this:

localhost/ci/welcome/cat/7

My base url is localhost/ci, so by clicking on this link I would expect the method "cat" of controller "welcome" to be called.

This method is very simple:

   function cat()
    { 
        echo "just a test.";
    }

Pretty basic - I would expect to see the text on screen, but I just see a 404 -page not found error.

What could be the problem?

© Stack Overflow or respective owner

Related posts about codeigniter