Код: Выделить всё
return $this->render('view', [
'model' => $this->findModel($id),
]);
То есть хочу сделать так:
Код: Выделить всё
if( Yii::$app->request->isAjax ) {
$this->layout = null; // тут как-нибудь убрать layout
}