- Notifications
You must be signed in to change notification settings - Fork 77
Open
Labels
Description
Would it be possible to simply create tab-panels?
I have tried it in several ways but in the end I had to resort to $ this-> Html-> tag and create them in a "manual" way.
<?php $navtabs = null; $tabs = null; $link = $this->Html->link('Tab #1', '/#1', ['data-toggle' => 'tab']); $navtabs .= $this->Html->tag('li', $link, ['class' => 'active']); $tabcontent = 'any content for the tab'; $tabs .= $this->Html->div('tab-pane active', $tabcontent , ['id' => 1]); $link = $this->Html->link('Tab #2', '/#2', ['data-toggle' => 'tab']); $navtabs .= $this->Html->tag('li', $link); $tabcontent = 'any content for the tab'; $tabs .= $this->Html->div('tab-pane', $tabcontent , ['id' => 2]); echo $this->Html->tag('ul', $navtabs, ['class' => 'nav nav-tabs']); echo $this->Html->div('tab-content', $tabs); ?>