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
then you want to add a after Ajax Method on admin grid view
```php
'afterAjaxUpdate'=>'function(){
fancy();
}',
```
and add a script on admin page
```php
<script type="text/javascript">
$(document).ready(function() {
$(".fancybox1").fancybox({[...]