摘要:
1 application\components\controller.php2 3 protected function afterRender($view, &$output) 4 { 5 if(Yii::app()->params['compress_on']){ 6 Yii::import('ext.Compress', true); 7 $output = Compress::minify($output, array('xhtml' => true)); 8 } 9 }extension\Compress.php 阅读全文