Minify Javascript

How to Minify Javascript and CSS files using minify Extension in Yii?

To minify JavaScript and CSS files in Yii applications go to the URL and then download the extension.
After that, extract the extension into the extension directory. Finally, edit the config.php file with the following lines in // application components section-

'clientScript' => array(
'class' => 'ext.minify.EClientScript',
'combineScriptFiles' => true,
'combineCssFiles' => true,
'optimizeCssFiles' => true,
'optimizeScriptFiles' => false,
),

Now, test using the YSlow or Google’s PageSpeed.