hi
does CTabView supports scenario following scenario:
-
we define "view" to be used AND "url" for "tab"
-
on no javascript, url is used to reload whole page with particular tab open
and if does, an example please ![]()
cheers!
hi
does CTabView supports scenario following scenario:
we define "view" to be used AND "url" for "tab"
on no javascript, url is used to reload whole page with particular tab open
and if does, an example please ![]()
cheers!
raw solution:
replace in CTabView->renderHeader() {:
$url=isset($tab['url'])?$tab['url']:"#{$id}";
with:
if(isset($tab['url'])) {
$url = $tab['url'] . (@strpos('?', $tab['url']) !== false ? '&' : '?') . 'activeTab=' . $id . '#' . $id;
} else {
$url = '?activeTab=' . $id . '#' . $id;
}
… and tabs works with disabled js (think about high end super phones with browsers still in 80s)