Yii Framework Forum: tab di dalam tab itu gmn ? - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

tab di dalam tab itu gmn ? how to make tab in tab ? Rate Topic: -----

#1 User is offline   y_i_i 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 38
  • Joined: 26-March 12

Posted 08 April 2012 - 09:31 AM

para masterrr tolongin saya pleaseee,,,,

kebutuhan saya tab di dalam tab,, kurang lebihhh,,


Attached File  tab in tab.jpg (33.22K)
Number of downloads: 37



untuk tab pertama saya pake 'zii.widgets.jui.CJuiTabs'
nah untuk tab2/subtab niat nya pake 'bootstrap.widgets.BootTabbable' tapii itu statiss bisa ga siih digabung sama ajax ?

<?php $this->widget('bootstrap.widgets.BootTabbable', array(
'type'=>'tabs', // 'tabs' or 'pills'
'tabs'=>array(
array('label'=>'inbox', 'content'=>'aaaaa'),
)),
'events'=>array(
'show'=>"js:function() { console.log('Tabbable show.'); }",
'shown'=>"js:function() { console.log('Tabbable shown.'); }",
),
),
)); ?>

'content'=>'aaaaa'
digantii
'ajax'=>$this->breadcrumbs=array('member/inbox'),


thx for any response :)
0

#2 User is offline   y_i_i 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 38
  • Joined: 26-March 12

Posted 11 April 2012 - 10:14 AM

hahahahahahhh.....
it's solved :D


just share information

controller

public function accessRules()
	{
array('allow', // allow authenticated user to perform 'create' and 'update' actions
				'actions'=>array('create','update','communications','inbox','outbox'),
				'users'=>array('@'),
			),
			
		);
	}

public function actionCommunications($id)
	{
		$this->renderPartial('communications',array(
		'model'=>$this->loadModel($id),),false,true);
	}



view.php


	
	<?php
		$this->widget('zii.widgets.jui.CJuiTabs', array(
	    'tabs' => array(
		    		
			'Communications' => array(
			'title'=>'tab1',
			'ajax'=>$this->breadcrumbs=array('member/communications&id='.$_REQUEST['id'])),
			
			
			
   ),
   
	    'htmlOptions'=>array(
        'style'=>'width:1010px;'),
		// additional javascript options for the tabs plugin
	    'options' => array(
	        'collapsible' => true,
	    ),
	));
?>


make communications.php

<?php
$this->widget('zii.widgets.jui.CJuiTabs', array(
    'tabs'=>array(
        'inbox'=>array(
			'title'=>'tab1',
			'ajax'=>$this->breadcrumbs=array('member/inbox&id='.$_REQUEST['id'])),
    					
		'Outbox'=>array(
			'title'=>'tab2',
			'ajax'=>$this->breadcrumbs=array('member/outbox&id='.$_REQUEST['id'])),
    					
    					
	 ),
	    'htmlOptions'=>array(
        'style'=>'width:900px;',
		'id'=>mktime()),
		// additional javascript options for the tabs plugin
	    'options' => array(
	        'collapsible' => true,
	    ),
	));
?>


make inbox.php and outbox.php


smoga bermanfaat :)
0

#3 User is offline   yogafs 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 4
  • Joined: 21-September 12

Posted 21 September 2012 - 04:55 AM

ini yg tak cari ... ketemu juga
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users