title: Using Yii2 GridView with array of data
body: <p>I have an array:</p>
  
  <pre><code>$arr = ['ID' =&gt; 'A1', 'Description' =&gt; 'Item to be sold', ...]
  </code></pre>
  
  <p>In controller:</p>
  
  <pre><code>$provider = new ArrayDataProvider([
  'allModels' =&gt; $arr,
  //'sort' =&gt;['attributes' =&gt; ['ID', 'Description'],],
  'pagination' =&gt; ['pageSize' =&gt; 5]
  ]);
  $this -&gt; render('index', ['provider' =&gt; $arr]);
  </code></pre>
  
  <p>In view (<code>index.php</code>):</p>
  
  <pre><code>GridView::widget([
  'dataProvider' =&gt; $provider,
  ]);
  </code></pre>
  
  <p>And there is no result on page. Where it is wrong?</p>