Difference between #3 and #4 of
Display image on CGridView column and open a fancy-box

Revision #4 has been created by 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  
 
 
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({
[...]
0 0
2 followers
Viewed: 18 157 times
Version: Unknown (update)
Category: Tutorials
Written by: Ankit Modi
Last updated by: Ankit Modi
Created on: Aug 3, 2013
Last updated: 11 years ago
Update Article

Revisions

View all history