I need load all site through ajax tabs, how i can do that?
e.g first tab should display data from category databasy, second tab display post data etc
controller
public function actionTabsData() {
$html = $this->renderPartial('index');
return Json::encode($html);
}
view
$items = [
[
'label'=>'<i class="glyphicon glyphicon-user"></i> Profile',
'content'=>'',
'linkOptions'=>['data-url'=>\yii\helpers\Url::toRoute(['repertuar/tabs-data'])]
],
];