I'm new to CI and URI routing in general.
I created a new app. Set the default controller to Main
. In Main
, I have an index
method, a popular
method and a recent
method.
When I load my app, the url shows up as http://localhost/myapp
... this obviously loads up the index
method in the Main
controller... that's fine.
Now how do I route my URIs so I can load up the popular and recent method by going to http://localhost/myapp/popular
and http://localhost/myapp/recent
respectively?