Using slugs in codeigniter
I just store the slugs in my database table, in a column called slug, then find a post with the slug, like this: public function view($slug) { $query = $this->db->get_where(‘posts’, array(‘slug’ => $slug), 1); // Fetch the post row, display the post view, etc… } Also, to easily derive a slug from your post title, … Read more