public function actionModelVariables() { $model = new EmailConfig(); $model->load(Yii::$app->request->post()); echo DetailView::widget(['model' => false, 'attributes' => $model->variables()]); }