summaryrefslogtreecommitdiffstats
path: root/application/config
diff options
context:
space:
mode:
authorPhil Sturgeon <email@philsturgeon.co.uk>2010-12-15 16:18:16 +0100
committerPhil Sturgeon <email@philsturgeon.co.uk>2010-12-15 16:18:16 +0100
commit23174a64277cad04c89d943fa65694299f7424d6 (patch)
tree7f8cb3089d91d3fdc53ec932f7132a4ab8ef1db7 /application/config
parentfb5523855cb0592abe8e8720d7019fa82acfb054 (diff)
['404_override'] can now take methods and URI segments, not just a controller name. This is useful for 404 pages on errors/page_missing or /pages/view/404.
Diffstat (limited to 'application/config')
-rw-r--r--application/config/routes.php9
1 files changed, 8 insertions, 1 deletions
diff --git a/application/config/routes.php b/application/config/routes.php
index 614462fd9..5f9a58343 100644
--- a/application/config/routes.php
+++ b/application/config/routes.php
@@ -23,16 +23,23 @@
| RESERVED ROUTES
| -------------------------------------------------------------------------
|
-| There is one reserved routes:
+| There area two reserved routes:
|
| $route['default_controller'] = 'welcome';
|
| This route indicates which controller class should be loaded if the
| URI contains no data. In the above example, the "welcome" class
| would be loaded.
+|
+| $route['404_override'] = 'errors/page_missing';
+|
+| This route will tell the Router what URI segments to use if those provided
+| in the URL cannot be matched to a valid route.
+|
*/
$route['default_controller'] = "welcome";
+$route['404_override'] = '';
/* End of file routes.php */