Hi Guys I am new to Yii Framework try to work on CGridview customizing the button
there is my code
<?php
$this->widget('zii.widgets.grid.CGridView', array(
'id'=>'contacts-grid',
'dataProvider'=>$model->search(),
'filter'=>$model,
'columns'=>array(
'ID',
'FirstName',
'LastName',
'Designation',
'Organisation',
'Comments',
array
(
'class'=>'CButtonColumn',
'template'=>'{email}{delete}',
'buttons'=>array
(
'email' => array
(
'label'=>'Address',
'imageUrl'=>Yii::app()->request->baseUrl.'/images/con_address.png',
'url'=>'Yii::app()->createUrl("contactsaddress/view", array("id"=>$model->ID))',
),
),
),// END OF array
)
));
?>
I am getting the error Undefined variable: model
any idea why