Reputation: 315
This code only shows the second field, I need both fields. Thanks.
<?php echo Tabs::widget([
'items' => [
[
'label' => 'One',
'content' => $form->field($model, 'name'),
'content' => $form->field($model, 'type'),
'active' => true
],
........
Upvotes: 0
Views: 396
Reputation: 315
<?= Tabs::widget([
'items' => [
[
'label' => 'General',
'content' => $this->render('product_form1', ['model' => $model, 'form' => $form]),
'active' => true
],
Upvotes: 0
Reputation: 1281
See docs
echo Tabs::widget([
'items' => [
[
'label' => 'One',
'content' => 'Anim pariatur cliche...',
'active' => true
],
[
'label' => 'Two',
'content' => 'Anim pariatur cliche...',
'headerOptions' => [...],
'options' => ['id' => 'myveryownID'],
],
[
'label' => 'Example',
'url' => 'http://www.example.com',
],
[
'label' => 'Dropdown',
'items' => [
[
'label' => 'DropdownA',
'content' => 'DropdownA, Anim pariatur cliche...',
],
[
'label' => 'DropdownB',
'content' => 'DropdownB, Anim pariatur cliche...',
],
],
],
],
]);
Upvotes: 1