Welcome Guest, Not a member yet? Register   Sign In
Routing – error in tutorial?
#1

(This post was last modified: 03-08-2017, 06:32 AM by gerald. Edit Reason: Hopefully easier to understand )

https://www.codeigniter.com/user_guide/g...uting.html
On this page you can read:
Quote:Important
The reserved routes must come before any wildcard or regular expression routes.

https://www.codeigniter.com/user_guide/t...ction.html
On this tutorial page you have this example:
Code:
$route['news/(:any)'] = 'news/view/$1';
$route['news'] = 'news';
$route['(:any)'] = 'pages/view/$1';
$route['default_controller'] = 'pages/view';


$route['default_controller'] is a reserved route if I understand the documentation correctly.

Regards
Gerald
Reply


Messages In This Thread
Routing – error in tutorial? - by gerald - 02-22-2017, 01:57 PM
RE: Routing – error in tutorial? - by gerald - 03-07-2017, 04:38 AM
RE: Routing – error in tutorial? - by Code4fun - 03-07-2017, 11:52 AM
RE: Routing – error in tutorial? - by InsiteFX - 03-07-2017, 01:12 PM
RE: Routing – error in tutorial? - by Narf - 03-07-2017, 03:09 PM
RE: Routing – error in tutorial? - by gerald - 03-08-2017, 06:28 AM



Theme © iAndrew 2016 - Forum software by © MyBB