there is a controller cartController with this rendering

if (Yii::$app->request->isPjax) { return $this->renderPartial('_success'); } else { return $this->goBack(); } 

Here is the type of cart / _success.php

 <?php use yii\widgets\Pjax; Pjax::begin(['id' => 'pjax']); ?> <p><?= \yii\helpers\Html::encode('Добавлено') ?></p> <?php Pjax::end(); ?> 

there is a need to add such a render

 $this->renderPartial('адресс нужного вида',['pluss'=>1]); 

but the problem is that the required view should be in the form of layouts / main.php. How can I send such a render?

    1 answer 1

    Need to add such code

     $this->renderPartial('/layouts/main',['pluss'=>1]);