yii-html-compressor-filter A filter that compresses HTML.

  1. Demo
  2. Requirements
  3. Usage
  4. Donations

A filter that compresses HTML. It also compresses CSS.

Demo

Click here for the demo. If you check the source code you will see that it is compressed.

Requirements

Yii 1.x

Usage

Copy HtmlCompressorFilter.php to the protected/filters directory (create it if it doesn't exist).

Add an entry to the filters array (preferably in Controller.php).

public function filters()
    {
        $filters = array(  
            array(
                'application.filters.HtmlCompressorFilter',
            ),  
        );
        
        return $filters;
    }

Filter only applies when YII_DEBUG == false.

Donations

Donations are welcome. Thanks for your support!!!

Paypal

0 1
1 follower
250 downloads
Yii Version: 1.1
License: BSD-2-Clause
Category: Others
Developed by: oligalma
Created on: Dec 12, 2015
Last updated: a year ago

Downloads

show all

Related Extensions