I’ve a page with a CjuiTab, with seven tabs.
I need a link into from external page or from the same page, to REFRESH the page directly a the specified tab.
I need to use ChtmlLink, but how to append ‘#’ to end of url ?
CHtml::link (Yii::t('general','Annulla'),
array("company/update",
'id'=> $companyId)
where / how to append ‘#contactTab’ !?
You just need to pass a
'#'=>'value'. The value of the url parameter forCHtml::linkis ultimately passed toCController::createUrl, and the doc states:So try with:
Update: For same page links you’ll need to use some javascript to reload the page after the browser url is set:
(Not sure if this is the best way to reload though)