From 18cb551318b58afd8d6e6ae89f396795dbe19bfd Mon Sep 17 00:00:00 2001 From: Joël Cox Date: Wed, 7 Sep 2011 21:17:37 +0200 Subject: Fixed pages route. Thanks @tomcode. --- user_guide/tutorial/static_pages.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'user_guide') diff --git a/user_guide/tutorial/static_pages.html b/user_guide/tutorial/static_pages.html index 51a04c689..26c8306e1 100644 --- a/user_guide/tutorial/static_pages.html +++ b/user_guide/tutorial/static_pages.html @@ -171,7 +171,7 @@ The second parameter in the view() method is used to pass values to t

Let's do that. Open the routing file located at application/config/routes.php and add the following two lines. Remove all other code that sets any element in the $route array.

-$route['default_controller'] = 'pages';
+$route['default_controller'] = 'pages/view';
 $route['(:any)'] = 'pages/view/$1';
 
-- cgit v1.2.3-24-g4f1b