Welcome Guest, Not a member yet? Register   Sign In
Extending CI_Router - Not sure where to start.

I would like to access http://mysite.com/some-article-name. I can accomplish this either by doing a $route for some-article-name (but then its not dynamic) or by doing $route['(:any)']. The problem with this is that it swallows up all other requests unless I define the route for each controller / method beforehand.

So what I'm hoping to be able to do is extend CI_Router, and after all routes / controllers are checked, before doing show_404, call my function to check if the uri matches an article in a database.

Any suggestions? much appreciated.

Theme © iAndrew 2016 - Forum software by © MyBB