Ejemplo n.º 1
0
 /**
  * @inheritdoc
  */
 public function getDetail()
 {
     $searchModel = new Db();
     if (!$searchModel->load(Yii::$app->request->getQueryParams())) {
         $searchModel->load($this->defaultFilter, '');
     }
     $dataProvider = $searchModel->search($this->getModels());
     $dataProvider->getSort()->defaultOrder = $this->defaultOrder;
     return Yii::$app->view->render('@yii/debug/views/default/panels/db/detail', ['panel' => $this, 'dataProvider' => $dataProvider, 'searchModel' => $searchModel, 'hasExplain' => method_exists($this, 'hasExplain') ? $this->hasExplain() : null]);
 }
Ejemplo n.º 2
0
 /**
  * @inheritdoc
  */
 public function getDetail()
 {
     $searchModel = new Db();
     $dataProvider = $searchModel->search(Yii::$app->request->getQueryParams(), $this->getModels());
     return Yii::$app->view->render('panels/db/detail', ['panel' => $this, 'dataProvider' => $dataProvider, 'searchModel' => $searchModel]);
 }