I am new in framework please help to solve this. I am working in CodeIgniter. I want to have clean URLs like this: example.com/index.php/6/title
index.php/6
is a post ID and title is a Page title.
I want to get data by post ID.
Controller function:
public function watch(){
echo id;
}
How to get this clean URL using routes. I am trying this route but it's not working:
$route['(:num)/(:any)'] = 'front_controller/watch/';