I have some questions concering routing with Codeigniter. What I´m doing now is the following:
$route[\'articles/(:num)\'] = \'articles/view/$1\'; // $1 will
I suggest you to create a slug field into your table and complete it with the url you want to use as id. Let me explain.
You have this table
id
title
slug
when you save an article into your db you can dinamically create a slug, for example:
id: 1
title: My first post
slug: 1-my-first-post
then you can use the slug (in this case 1-my-first-post) ad id for the page, you can call it:
www.example.com/articles/1-my-first-post
obviusly you need to handle it in your db slect