title: Unable to transfer data to views
body: <p>To get a list of products, I created a model &quot;ProductList&quot;</p>
  <pre><code>namespace app\models;
  use yii\helpers\Html;
  use yii\db\ActiveRecord;
  
  class ProductList extends ActiveRecord{
  
        public static function tableName()
        {
              return 'product'; // Имя таблицы в БД
        }
  
  }
  </code></pre>
  <p>Next, I created a controller to transfer data to views</p>
  <pre><code>namespace app\controllers;
  
  use app\models\ProductList;
  use yii\web\Controller;
  class SliderController extends Controller
  {
      public function actionIndex()
      {
          $product = ProductList::find()-&gt;all();
          return $this-&gt;render('index',compact('product'));
      }  
  }
  </code></pre>
  <p>But checking in the index</p>
  <pre><code>&lt;?php
      var_dump($product);
      die;
  ?&gt;
  </code></pre>
  <p>I get NULL</p>