Customizing Cgridview

Hi Guys I am new to Yii Framework try to work on CGridview customizing the button

there is my code

<?php

 &#036;this-&gt;widget('zii.widgets.grid.CGridView', array(


'id'=&gt;'contacts-grid',


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


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


'columns'=&gt;array(


	'ID',


	'FirstName',


	'LastName',


	'Designation',


	'Organisation',


	'Comments',





    array


    (


        'class'=&gt;'CButtonColumn',


        'template'=&gt;'{email}{delete}',


           'buttons'=&gt;array


            (


                'email' =&gt; array


                    (


                        'label'=&gt;'Address',


                        'imageUrl'=&gt;Yii::app()-&gt;request-&gt;baseUrl.'/images/con_address.png',


                        'url'=&gt;'Yii::app()-&gt;createUrl(&quot;contactsaddress/view&quot;, array(&quot;id&quot;=&gt;&#036;model-&gt;ID))',


                    ),





        ),


    ),// END OF array


   )


)); 

?>

I am getting the error Undefined variable: model

any idea why

never mind guys got it from thi link http://www.yiiframework.com/wiki/501/cgridview-add-custom-class-to-table-rows-preserving-original-odd-and-even/

cheers