mirror of
https://github.com/yiisoft/yii2.git
synced 2025-08-20 10:27:18 +08:00
debugger WIP
This commit is contained in:
@ -21,13 +21,17 @@ class DefaultController extends Controller
|
||||
public $module;
|
||||
public $layout = 'main';
|
||||
|
||||
public function actionIndex($tag, $panel = null)
|
||||
public function actionIndex($tag = null, $panel = null)
|
||||
{
|
||||
if ($tag === null) {
|
||||
$tags = array_keys($this->getManifest());
|
||||
$tag = end($tags);
|
||||
}
|
||||
$meta = $this->loadData($tag);
|
||||
if (isset($this->module->panels[$panel])) {
|
||||
$activePanel = $this->module->panels[$panel];
|
||||
} else {
|
||||
$activePanel = reset($this->module->panels);
|
||||
$activePanel = $this->module->panels['request'];
|
||||
}
|
||||
return $this->render('index', array(
|
||||
'tag' => $tag,
|
||||
@ -47,6 +51,11 @@ class DefaultController extends Controller
|
||||
));
|
||||
}
|
||||
|
||||
public function actionPhpinfo()
|
||||
{
|
||||
phpinfo();
|
||||
}
|
||||
|
||||
private $_manifest;
|
||||
|
||||
protected function getManifest()
|
||||
|
Reference in New Issue
Block a user