Php Yii2选项卡内容一页
在myview.php中Php Yii2选项卡内容一页,php,yii2,tabs,pjax,Php,Yii2,Tabs,Pjax,在myview.php中 <?php echo Tabs::widget([ 'items' => [ [ 'label' => 'One', 'content' => 'Anim pariatur cliche...', 'active' => true ], [ 'label' => 'Two',
<?php echo Tabs::widget([
'items' => [
[
'label' => 'One',
'content' => 'Anim pariatur cliche...',
'active' => true
],
[
'label' => 'Two',
'content' => 'Anim pariatur cliche...',
'headerOptions' => [...],
'options' => ['id' => 'myveryownID'],
],
?>
<div class="row" id="content1">
...some html...
</div>
<div class="row" id="content2">
...some html...
</div>
我终于找到了
…银行详细信息的内容。。。
…教育细节的内容。。。
...
希望对其他人有帮助
<?php $this->beginBlock('bank'); ?>
...content of bank details ...
<?php $this->endBlock(); ?>
<?php $this->beginBlock('education'); ?>
...content of educatinal details...
<?php $this->endBlock(); ?>
...
<?php echo Tabs::Widget([
'items' => [
[
'label' => 'Bank Detais',
'content' => $this->blocks['bank'],
'active' => true,
],
[
'label' => 'Educational Details',
'content' => $this->blocks['education'],
],
...
]
]); ?>