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!!!
If you have any questions, please ask in the forum instead.
Signup or Login in order to comment.