/**
  * Lists all Productos models.
  * @return mixed
  */
 public function actionIndex()
 {
     $searchModel = new ProductosSearch();
     $dataProvider = $searchModel->search(Yii::$app->request->queryParams);
     return $this->render('index', ['searchModel' => $searchModel, 'dataProvider' => $dataProvider]);
 }
Beispiel #2
0
 public function actionBackoffice()
 {
     $query = ProductosSearch::getTop10();
     return $this->render('backoffice', ['query' => $query]);
 }