On this post, the Yii blog demo, which comes with the Yii download, will be used as an example.
There is a question I heard a couple of times on the Yii channel @ FreeNode. The question we’re talking about is: ‘How do I add a button (preferably an AJAX-button) to my page which filters the CGridView?’. I’ll be answering this question in this post.
A little while ago, I had to build a .xls export function into a Yii application. I decided to use PHPExcel for this, since I had used it before. It’s also probably the best Excel importer/exporter for PHP. I soon figured that this didn’t go as smooth as I expected.