diff options
author | Razican <devnull@localhost> | 2011-04-25 14:03:54 +0200 |
---|---|---|
committer | Razican <devnull@localhost> | 2011-04-25 14:03:54 +0200 |
commit | 48d6d5856ea95dd363f2a420f08200f488fb5151 (patch) | |
tree | 314bd87831a09913cbbfd1ffe1447b3c38b394c5 /user_guide/general/routing.html | |
parent | c24f49b54f47229aa89781c0cc06c3d9fa947937 (diff) |
Fixed #74.
Diffstat (limited to 'user_guide/general/routing.html')
-rw-r--r-- | user_guide/general/routing.html | 5 |
1 files changed, 5 insertions, 0 deletions
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.</p> 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.</p> +<code>$route['404_override'] = '';</code> + +<p>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 <samp>show_404()</samp> function, which will continue loading the default <dfn>error_404.php</dfn> file at <var>application/errors/error_404.php</var>.</p> + <p class="important"><strong>Important:</strong> The reserved routes must come before any wildcard or regular expression routes.</p> </div> |