This is a simple widget to create a Bootstrap Carousel.
Requirements ¶
The requirements of using this extension is Yii 1.1 or above and jQuery
Usage ¶
<?php
$this->widget('application.extensions.Carousel.TCarousel', array(
'images' => array(
array(
'image' => Yii::app()->theme->baseUrl.'/img1.jpg',
'alt' => 'Alt',
'active' => FALSE,
'url' => Yii::app()->createUrl('site/about')
),
array(
'image' => Yii::app()->theme->baseUrl.'/img2.jpg',
'alt' => 'Alt',
'active' => TRUE,
'url' => Yii::app()->createUrl('site/contact')
)
),
'width'=>1000,
'height'=>430,
));
?>
If you have any questions, please ask in the forum instead.
Signup or Login in order to comment.