Yii 1.1: yii-html-compressor-filter

A filter that compresses HTML.
1 follower

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

Be the first person to leave a comment

Please to leave your comment.

Create extension