getController()->beginWidget('BTabs'); foreach ($this->tabs as $tab) { $tabs->beginTab($tab['label']); $this->getController()->widget($tab['className'], $tab['properties']); $tabs->endTab(); } $this->getController()->endWidget(); } }