I have this code in my view:
<?php $tabs = array( array('title'=>'customer','url'=>'/general/customer/admin'), array('title'=>'account','url'=>'/general/account/admin'), ); $this->widget('application.extensions.slajaxtabs.SlAjaxTabs', array('tabs'=>$tabs));
and the result looks like this:
- customer
- account
I've also tried using the inbuilt tabs function, calling the following in the controller:
$c=new CTabView(); $c->tabs=array('tab1'=>array('title'=>'Revenue Development','view'=>'status'),'tab2'=>array('title'=>'Catalog','view'=>'locales')); $c->registerClientScript(); $output=$c->run(); return $output;
but it breaks the subsequent render. If someone could either tell me where I'm going wrong, or point me at a working code example that uses tabs-preferably ajax but the regular ones if need be-I'd greatly appreciate it.