It appears you can create a comma separated string from a query result and just change some page headers to download a csv which excel can then read. To do this in Yii you can do a $this->renderPartial(‘view.php’) in a new browser window.
All in all it should just be a few lines of code. You can also try a Google search yourself for other articles.