[eluser]intoitdaily[/eluser]
Holy Hell that was easy! It literally took me like 3 minutes to make it work! all I did was add
Code:
$route['blog/:num'] = 'blog/id';
to my routes.php file.
In my controllers I changed all the
Code:
$this->uri->segment(3)
to be
Code:
$this->uri->segment(2)
and in my views I changed all the anchors from
Code:
<?=anchor('blog/id/'. $row->id .'/', $row->title); ?>
to
Code:
<?=anchor('blog/'. $row->id .'/', $row->title); ?>
so simple! The only thing is in a large application, you have to stay on top of your routes if this is something you do often. It can get a little bit confusing if you forget to change a redirect link or something in a view or controller. Thanks again guys!