Yii excel export

It is very simple and a only a matter of a few lines of code to export your data (for example from mysql) into excel. Follow the following steps:
1. Download PHP Excel Library from
https://github.com/PHPOffice/PHPExcel/tree/1.8/Classes
And extract into protected/extensions/PHPExcel