Example #1
0
 /**
  * Default call
  *
  * @param string	method name
  * @param array		array of arguments
  * @return string
  */
 public function __call($method, $arguments)
 {
     // Disable auto-rendering
     $this->auto_render = FALSE;
     // By defining a __call method, all pages routed to this controller
     // that result in 404 errors will be handled by this method, instead of
     // being displayed as "Page Not Found" errors.
     echo 'This text is generated by __call.<br />You ask this page: ' . X4Route_core::getRoute();
 }