• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
having trouble with controller , showing not found page

#2
[eluser]vitoco[/eluser]
I think that your routing it's the problem
Code:
$route['default_controller'] = "pages/view";
$route['404_override'] = '';
$route['news/create'] = 'news/create';
$route['news/(:any)'] = 'news/view/$1';
$route['news'] = 'news';
$route['(:any)'] = 'pages/view/$1'; // I THINK THAT THIS ONE CATCH THE REQUEST

$route['post'] = 'post';

so this may work

Code:
$route['default_controller'] = "pages/view";
$route['404_override'] = '';
$route['news/create'] = 'news/create';
$route['news/(:any)'] = 'news/view/$1';
$route['news'] = 'news';
$route['post'] = 'post'; // THIS ONE CATCHES POST
$route['(:any)'] = 'pages/view/$1'; // THIS ONE ALL THE REST

Saludos


Messages In This Thread
having trouble with controller , showing not found page - by El Forum - 07-07-2012, 11:46 AM
having trouble with controller , showing not found page - by El Forum - 07-07-2012, 10:19 PM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.