How to change the layout of controller in yii2

I am using yii2 basic

I have implemented Admin LTE.

Now when admin logs in, on sidebar there is menu called Dashboard, where many statistics should be displayed.

I have created controller called DashboardController and linked to the menu. But the layout is different. It doesn’t get included in content section of Admin LTE. (A separate blank page is displayed)

You can set layout in action:




public function actionIndex() {

    $this->layout = 'blabla';

}



If you use module you can configure layout through config:




'modules' => [

        'admin' => [

            'class' => 'frontend\modules\admin\Module',

            'layout' => '@admin/views/layouts/main'

        ],

    ],