title: Yii2 no result message without using gridview
body: <p>My controller:</p>
  
  <pre><code> public function actionResults()
  {
  
       $query = User::find();
  
       $admins = $query-&gt;orderBy('id')-&gt;andWhere('role_id = 1')-&gt;all();
  
       $searchModel = new AdminSearch();
      $dataProvider = $searchModel-&gt;search(Yii::$app-&gt;request-&gt;queryParams);
  
      return $this-&gt;render('results', [
          'admins' =&gt; $admins,
          'dataProvider' =&gt; $dataProvider,
          'searchModel' =&gt; $searchModel,
      ]);
  }
  </code></pre>
  
  <p>Result view:</p>
  
  <p></p>
  
  <pre><code>&lt;table class="table"&gt;
  &lt;thead&gt;
  &lt;tr&gt;
      &lt;th&gt;ID&lt;/th&gt;
      &lt;th&gt;Name&lt;/th&gt;
      &lt;th&gt;Create Date&lt;/th&gt;
  &lt;/thead&gt;
  &lt;tbody&gt;
  &lt;?php foreach  ($dataProvider-&gt;models as $model){ ?&gt;
  &lt;tr&gt;
      &lt;td&gt;&lt;?= $model-&gt;username; ?&gt;&lt;/td&gt;
  
      &lt;td&gt;&lt;?=$model-&gt;fullname; ?&gt;&lt;/td&gt;
  
      &lt;td&gt;&lt;?=$model-&gt;email; ?&gt;&lt;/td&gt;
      &lt;/tr&gt;
  </code></pre>
  
  <p>I don't want to use Gridview to so I render the result out like that, but don't know how to throw a no result message.</p>
  
  <p>Please help me.</p>
  
  <p>Thanks</p>