Esempio n. 1
0
 /**
  * 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]);
 }
Esempio n. 2
0
 public function actionBackoffice()
 {
     $query = ProductosSearch::getTop10();
     return $this->render('backoffice', ['query' => $query]);
 }