It is my understanding that in a CMS like wordpress, all the pages are built dynamically by sending variables through the url and then simplifying the url to something like www.example.com/my-first-blog-post/. I'm assuming that it sends the post id and is not relying solely on the blog post's url name.
With codeigniter, I have my blog controller and my blog templates setup, however I'm not sure how I would implement something like wordpress. I would need to have a url like www.example.com/my-first-blog/12/ in order to pass the post's id. Is there a way to hide the 12 or do I instead search the blog post by it's url name?