tcarousel

Create a Bootstrap Carousel images
1 follower

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,
    ));
?>

Be the first person to leave a comment

Please to leave your comment.

Create extension