debugger WIP

This commit is contained in:
Qiang Xue
2013-07-07 16:38:48 -04:00
parent faf445bba8
commit 30ec0afd18
12 changed files with 179 additions and 33 deletions

View File

@ -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()