Beispiel #1
0
 public function printStackTrace()
 {
     $exception = is_null($this->wrappedException) ? $this : $this->wrappedException;
     if (coreConfig::get('sf_debug')) {
         $response = coreContext::getInstance()->getResponse();
         $response->setStatusCode(404);
         return parent::printStackTrace();
     } else {
         // debug message
         //echo $exception->getMessage();
         coreContext::getInstance()->getController()->forward(coreConfig::get('error_404_module'), coreConfig::get('error_404_action'));
     }
 }