[eluser]Andrew Cairns[/eluser]
Hi Martin,
My first thought would be to change your planned uri.
I would have a Blog controller, as you are viewing the archive of the blog - unless you have multiple archives, then .. ignore this
Your route for this would then be something like:
$route['blog/archive/(:any)'] = "blog/controller_name_here/method_you_want_to_call/$1";
(I use the HMVC extension, so blog would be my module and archive would be my controller)
You could also:
$route['blog/archive/(:any)'] = "controller_name_here/method_you_want_to_call/$1";
Viewing a current blog post would be almost identical:
$route['blog/(:any)'] = "controller_name_here/method_you_want_to_call/$1";
if using HMVC:
$route['blog/(:any)'] = "blog/controller_name_here/method_you_want_to_call/$1";