Пример #1
0
 public function afterAction($action, $result)
 {
     $result = parent::afterAction($action, $result);
     if ($action->id != 'error' && Extension_Loaded('zlib')) {
         Ob_End_Flush();
     }
     return $result;
 }
Пример #2
0
 static function stop()
 {
     self::$stopTime = microtime(true);
     //将获取的时间赋给成员属性$stopTime
     if (Config::config('debug')) {
         //显示DEBUG信息
         debug::message();
     }
     if (Extension_Loaded('zlib') && Config::config('gzip')) {
         @Ob_End_Flush();
     }
 }