Changeset 3281 for trunk/application

Show
Ignore:
Timestamp:
08/06/2008 11:13:58 AM (4 months ago)
Author:
Shadowhand
Message:

Follow up to r3280

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/application/controllers/welcome.php

    r3275 r3281  
    4141        } 
    4242 
    43         public function _default() 
     43        public function __call($method, $arguments) 
    4444        { 
    4545                // Disable auto-rendering 
    4646                $this->auto_render = FALSE; 
    4747 
    48                 // By defining a method called _default, all pages routed to this controller 
     48                // By defining a __call method, all pages routed to this controller 
    4949                // that result in 404 errors will be handled by this method, instead of 
    5050                // 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); 
    5252        } 
    5353