This extension is ...
Resources ¶
Documentation ¶
Requirements ¶
- Yii 1.0 or above
Installation ¶
- Extract the release file under
protected/extensions
Usage ¶
See 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里的两个视图文件中的变量为你的大图小图路径
Change Log ¶
September 18, 2010 ¶
- Initial release.
If you have any questions, please ask in the forum instead.
Signup or Login in order to comment.