summaryrefslogtreecommitdiffstats
path: root/user_guide
diff options
context:
space:
mode:
authorRazican <devnull@localhost>2011-04-25 14:03:54 +0200
committerRazican <devnull@localhost>2011-04-25 14:03:54 +0200
commit48d6d5856ea95dd363f2a420f08200f488fb5151 (patch)
tree314bd87831a09913cbbfd1ffe1447b3c38b394c5 /user_guide
parentc24f49b54f47229aa89781c0cc06c3d9fa947937 (diff)
Fixed #74.
Diffstat (limited to 'user_guide')
-rw-r--r--user_guide/general/routing.html5
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>&nbsp; The reserved routes must come before any wildcard or regular expression routes.</p>
</div>