mirror of
https://github.com/yiisoft/yii2.git
synced 2025-12-09 14:59:54 +08:00
added panel support for index view
This commit is contained in:
@@ -50,7 +50,13 @@ class DefaultController extends Controller
|
||||
$searchModel = new Debug();
|
||||
$dataProvider = $searchModel->search($_GET, $this->getManifest());
|
||||
|
||||
// load latest request
|
||||
$tags = array_keys($this->getManifest());
|
||||
$tag = reset($tags);
|
||||
$this->loadData($tag);
|
||||
|
||||
return $this->render('index', [
|
||||
'panels' => $this->module->panels,
|
||||
'dataProvider' => $dataProvider,
|
||||
'searchModel' => $searchModel,
|
||||
]);
|
||||
|
||||
Reference in New Issue
Block a user