public function actionIndex() { $model = new Product(); $products = $model->findAll(['published' => 10]); return $this->render('index', ['nodes' => $products]); }