//CVarDumper::dump($controllers, 3, true); foreach ($controllers as $n => $controller) { $title = $controller["title"]; $data = array(); foreach ($controller["actions"] as $key => $val) { $data[$val] = $val; } if (sizeof($data) > 0) { $select = $controller["allowed"]; // It seems that this tabview conflicts with assign tabview so I raise the tab number by 3 //$cont[$n+3]["title"] = str_replace("Controller", "", $title); //$cont[$n+3]["content"] = SHtml::checkBoxList($title, $select, $data); $cont["tab_" . $n] = array("title" => str_replace("Controller", "", $title), "content" => SHtml::checkBoxList($title, $select, $data)); } } echo SHtml::form(); ?> <div class="vertTab"> <?php Helper::publishCss($this->module->css); $this->widget('system.web.widgets.CTabView', array('tabs' => $cont, 'cssFile' => $this->module->getCssUrl())); ?> </div> <div class="action"> <?php echo SHtml::ajaxSubmitButton(Helper::translate("srbac", "Save"), array('saveAllowed'), array('type' => 'POST', 'update' => '#wizard', 'beforeSend' => 'function(){ $("#wizard").addClass("srbacLoading"); }', 'complete' => 'function(){ $("#wizard").removeClass("srbacLoading"); }'), array('name' => 'buttonSave')); ?>