added panel support for index view

This commit is contained in:
Tobias Munk
2014-02-07 02:47:23 +01:00
parent c998461757
commit 840d588fe0

View File

@@ -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,
]);