示例#1
0
 public function run()
 {
     if (YII_DEBUG) {
         $this->initErrorHandlers();
     }
     return parent::run();
 }
示例#2
0
 /**
  * Override to handle when debug is turned on and the checksum fails on cached models.
  */
 public function run()
 {
     try {
         parent::run();
     } catch (ChecksumMismatchException $e) {
         echo 'A checksum mismatch has occurred while retrieving a cached model. ' . 'This is most likely caused by setting debug=true. The cache must be cleared.';
         // Not Coding Standard
         echo '<br/>';
         $url = Yii::app()->createUrl('zurmo/default/index/', array('clearCache' => true));
         echo ZurmoHtml::link('Click here to clear the cache', $url);
         Yii::app()->end(0, false);
     }
 }
 /**
  * Runs the application.
  * This method loads static application components. Derived classes usually overrides this
  * method to do more application-specific tasks.
  * Remember to call the parent implementation so that static application components are loaded.
  */
 public function run()
 {
     parent::run();
 }