I use CodeIgniter and let's say i build a blog where /posts shows all posts, and /posts/cool_news shows the article called cool_news.
I know the first one would only need a controller called Posts and a function called index(). But how about the second example? how to get the second parameter which can be anything?