Fancy Box

I have a table with images column I would like to view in a popup while click in the image link.

If anyone help me to do this will be helpful guys.

Thanks Sally.

Hi Sally,

  1. Download the widget from here -> http://www.yiiframework.com/extension/fancybox

  2. Add this code anywhere at your view file




$this->widget('application.extensions.fancybox.EFancyBox', array('target' => 'img[rel=gallery]',));



  1. Add a new attribute to your img tag like this

[size=2]


[/size]

<img src="YOUR_IMAGE_URL"  rel="gallery" alt="YOUR_IMAGE_DES">



You are done!

Cheers! Happy Coding.

Hope this will help you