tcarousel Create a Bootstrap Carousel images

  1. Requirements
  2. Usage

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,
	));
?>
0 0
1 follower
519 downloads
Yii Version: Unknown
License: BSD-2-Clause
Category: User Interface
Developed by: Touzas
Created on: Jun 18, 2013
Last updated: 11 years ago

Downloads

show all

Related Extensions