V
V
Victor Umansky2017-04-27 16:52:30
Yii
Victor Umansky, 2017-04-27 16:52:30

Yii2 tabs content render?

Hello everyone
. I have a cabinet view, there is a Tabs::widget, in each content I want to display each block, each taboo from the folder.

_form/privateDate
_form/verification
_form/categotyPrice

Please advise how to implement this correctly.
In the controller
return $this->render('cabinet', [
            'model' => $model,
            'email' => $email,
            'avatarLabel' => $avatarLabel,
            'logo_company_id' => $logo_company_id,
            'region' => $region,
            'city' => $city,
        ]);

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Maxim Timofeev, 2017-04-28
@Uman

echo Tabs::widget([
    'items' => [
        [
            'label' => 'One',
            'content' => $this->render('_some_view',['somedata'=>$somedata]),
        ],
]]);

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question