More information about this topic
Reset database
 | 
CTabView
Name : Albert
Profession : Doctor

protected/modules/UiModule/views/ui_other/tab_view.php


$this->widget('CTabView',array(
        'tabs'=>array(
		'tab1' => array(
			'title'=>'Profile',
			'content'=>'Name : Albert <br/>Profession : Doctor',
		),
		'tab2'=>array(
			'title'=>'Cart',
			'view'=>'_content',
			'data'=>array('products'=>2, 'prices'=>35.30),
		),
		'tab3'=>array(
			'title'=>'External Link',
			'url'=>'http://www.yiiframework.com/',
		)
		
	),

));

protected/modules/UiModule/controllers/Ui_otherController.php

	public function actionTabView(){
		$this->render('tab_view'); 
	}

protected/modules/UiModule/views/ui_other/_content.php

<h1> Your Cart </h1>
<strong> Products : </strong> <?php echo $products ; ?><br/>
<strong> Total Prices  : </strong> <?php echo $prices ; ?><br/>
References
Fork me on GitHub