Exporting to Excel

Hi

I want to export to excel the below table which is displayed in the webpage.

Admin View:

<?php $this->widget(‘zii.widgets.grid.CGridView’, array(

'id'=&gt;'loan-record-grid',


'dataProvider'=&gt;&#036;model-&gt;search(),


'filter'=&gt;&#036;model,


'columns'=&gt;array(


	'demo_loan_ref',


	'country',


	'company',


	'requester_name',


	'requester_email',


	'loandate',


	'exp_returndate',


	


	array(


			'header'=&gt;'Status',


			'type'=&gt;'raw',


			'value'=&gt;'LoanRecord::getStatus(&#036;data-&gt;approve)',


		),





	array(


		'header'=&gt;'Action',


		'class'=&gt;'CButtonColumn',


		'template'=&gt;'{View Detail}&lt;br/&gt;{Complete Draft}&lt;br/&gt;{View Form}',


		'buttons'=&gt;array(


								'View Detail'=&gt;array(


															 'label'=&gt;'View Detail',


															 'url'=&gt;'CController::createUrl(&quot;/LoanRecord/view&quot;, array(&quot;id&quot;=&gt;&#036;data-&gt;id))',


															 'visible'=&gt;'&#036;data-&gt;approve &#33;= 0',


															),


								'Complete Draft'=&gt;array(


																 'label'=&gt;'Complete Draft',


																 'url'=&gt;'CController::createUrl(&quot;/LoanItem/create&quot;, array(&quot;id&quot;=&gt;&#036;data-&gt;id))',


																 'visible'=&gt;'&#036;data-&gt;approve == 0',


																),


								'View Form'=&gt;array(


															'label'=&gt;'View Form',


															'url'=&gt;'CController::createUrl(&quot;/loanRecord/formApprove&quot;, array(&quot;id&quot;=&gt;&#036;data-&gt;id))',


															'visible'=&gt;'&#036;data-&gt;approve == 3',


														)


							)


	),


),

)); ?>

Please help me on this.

How the values in CGrid View can be exported to excel?

Refer - http://www.yiiframework.com/extensions/?tag=export

http://www.yiiframework.com/wiki/306/exporting-cgridview-results-to-csv-file/