This extension is ...
protected/extensionsSee the following code example: view.php <?php $this->widget('application.extensions.galleryview.galleryviewWidget', array( 'data'=> SdbGoods::model()->findAll("image_default IS NOT NULL "), 'size'=>5, 'bigwidth'=>280, 'bigheight'=>280, 'smallwidth'=>100, 'smallheight'=>100, //'itemview'=>'allgalleryviewWidget', //theme 'light' or 'dark' 'theme'=>'light', 'caption_text_color'=>'black', )); ?>
or
view.php
<?php $this->widget('application.extensions.galleryview.galleryviewWidget', array( 'data'=> $images, 'bigwidth'=>Yii::app()->config->get('smallwidth'), 'bigheight'=>Yii::app()->config->get('smallheight'), 'smallwidth'=>Yii::app()->config->get('thumbwidth'), 'smallheight'=>Yii::app()->config->get('thumheight'), 'itemview'=>'allgalleryviewWidget', //theme 'light' or 'dark' 'theme'=>'light', )); ?>最后更改\protected\extensions\galleryview\views里的两个视图文件中的变量为你的大图小图路径
Be the first person to leave a comment
Please login to leave your comment.