Exemplo n.º 1
0
 public function init()
 {
     parent::init();
     $this->models = Product::find()->limit($this->limit)->all();
 }
Exemplo n.º 2
0
 public function actionIndex()
 {
     $models = Product::find()->all();
     return $this->render('index', ['models' => $models]);
 }