Revision #4                                    has been created by  Ankit Modi                                    on Aug 9, 2013, 10:11:59 AM with the memo:
 Ankit Modi                                    on Aug 9, 2013, 10:11:59 AM with the memo:
                                
                                
                                    text changes                                
                                                                    « previous (#3)                                                                                            
                            Changes
                            
    Title
    unchanged
    Display image on CGridView column and open a fancy-box
    Category
    unchanged
    Tutorials
    Yii version
    unchanged
    
    Tags
    unchanged
    fancybox, images, CGridView
    Content
    changed
    First**1)** Add a fancy-box extension on admin page 
 
 
 
 
 
```php 
<?php 
 
$this->widget('application.extensions.fancybox.EFancyBox', array(
 
    'target'=>'a[class=fancybox1]',
 
    'config'=>array(),
 
    )
 
); 
 
?>
 
```
 
 
**2)** write your code on **admin.php** file[...]
```
	
3)create the **UtilityHtml.php** file on component folder otherwise which common file call you can put the function...**getImageCoupon**[...]
and finally4)this fancy-box call if you want to change the pagination then open a image on fancy
 box 
 
 
 
 
 
 
 
 
```php 
'afterAjaxUpdate'=>'function(){
 
		fancy();
 
	}',
 
```
 
 
 
 
and add a script on admin page
```php
<script type="text/javascript">
	$(document).ready(function() {
	    $(".fancybox1").fancybox({[...]