Since: 2.0
Author: Qiang Xue (qiang.xue@gmail.com)
Author: Mark Jebri (mark.github@yandex.ru)
Inheritance: extends Base
Beispiel #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]);
 }
Beispiel #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]);
 }