I'm just learning about codeigniter and am stumped by the following:
I have these routes in my routes file:
$route['(:any)'] = 'pages/view';
$route['news/create'] = 'news/create';
$route['news/(:any)'] = 'news/view/$1';
$route['news'] = 'news';
$route['default_controller'] = 'pages/view';
Yet when i load http://mysite/index.php/news," it loads the news page rather than 'pages/view,'. I thought that because I have the catchall route at the top, this page would also just load pages/views.
Where am i going wrong?
pages/view
just delete news routes. – Iamzozo