Changeset 3281 for trunk/application
- Timestamp:
- 08/06/2008 11:13:58 AM (4 months ago)
- Files:
-
- 1 modified
-
trunk/application/controllers/welcome.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/application/controllers/welcome.php
r3275 r3281 41 41 } 42 42 43 public function _ default()43 public function __call($method, $arguments) 44 44 { 45 45 // Disable auto-rendering 46 46 $this->auto_render = FALSE; 47 47 48 // By defining a method called _default, all pages routed to this controller48 // By defining a __call method, all pages routed to this controller 49 49 // that result in 404 errors will be handled by this method, instead of 50 50 // being displayed as "Page Not Found" errors. 51 echo 'This is a _default handler. If you expected the index page, you need to use: welcome/index/'.substr(Router::$current_uri, 8);51 echo 'This text is generated by __call. If you expected the index page, you need to use: welcome/index/'.substr(Router::$current_uri, 8); 52 52 } 53 53
