From 48d6d5856ea95dd363f2a420f08200f488fb5151 Mon Sep 17 00:00:00 2001 From: Razican Date: Mon, 25 Apr 2011 14:03:54 +0200 Subject: Fixed #74. --- user_guide/general/routing.html | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/user_guide/general/routing.html b/user_guide/general/routing.html index 6ee6ad384..d1d8d1a8e 100644 --- a/user_guide/general/routing.html +++ b/user_guide/general/routing.html @@ -145,6 +145,11 @@ Higher routes will always take precedence over lower ones.

when people load your root URL. In the above example, the "welcome" class would be loaded. You are encouraged to always have a default route otherwise a 404 page will appear by default.

+$route['404_override'] = ''; + +

This route indicates which controller class should be loaded if the requested controller is not found. It will override the default 404 +error page. It won't affect to the show_404() function, which will continue loading the default error_404.php file at application/errors/error_404.php.

+

Important:  The reserved routes must come before any wildcard or regular expression routes.

-- cgit v1.2.3-24-g4f1b