Debug panel


I am trying to send an email from contact page of app basic, such as the action work, it is not displaying panel debug email notification, but whether i change this

public function actionContact()


     $model = new ContactForm();

     if ($model->load(Yii::$app->request->post()) && $model->contact(Yii::$app->params['adminEmail'])) {




     return $this->render('contact', [

         'model' => $model,



it is work, this is intentional or it is a bug.