newyiier
(Hannanhaniifa)
April 8, 2012, 2:31pm
1
para masterrr tolongin saya pleaseee,
kebutuhan saya tab di dalam tab, kurang lebihhh,
2759
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', [u][b]'content'=>'aaaaa'[/b][/u]),
)),
'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
newyiier
(Hannanhaniifa)
April 11, 2012, 3:14pm
2
hahahahahahhh…
it’s solved
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
yogafs
(Yogafs)
September 21, 2012, 9:55am
3
ini yg tak cari … ketemu juga