| 1 | <?php |
||
| 9 | class View extends \yii\web\View |
||
| 10 | { |
||
| 11 | /** |
||
| 12 | * Enable or disable compression, by default compression is enabled. |
||
| 13 | * |
||
| 14 | * @var bool |
||
| 15 | */ |
||
| 16 | public $compress = true; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * @inheritdoc |
||
| 20 | */ |
||
| 21 | public function init() |
||
| 39 | |||
| 40 | /** |
||
| 41 | * HTML compress function. |
||
| 42 | * |
||
| 43 | * @param $html |
||
| 44 | * @return mixed |
||
| 45 | */ |
||
| 46 | public static function compress($html) |
||
| 67 | } |
||
| 68 |