initial implementation of Yii debugger.

This commit is contained in:
Qiang Xue 2013-07-07 20:29:19 -04:00
parent 9664884e02
commit 06f0b41c38
3 changed files with 10 additions and 2 deletions

View File

@ -3,6 +3,13 @@
return array(
'id' => 'bootstrap',
'basePath' => dirname(__DIR__),
'preload' => array('debug'),
'modules' => array(
'debug' => array(
'class' => 'yii\debug\Module',
'enabled' => YII_DEBUG && YII_ENV === 'dev',
),
),
'components' => array(
'cache' => array(
'class' => 'yii\caching\FileCache',

View File

@ -18,8 +18,8 @@ $this->registerAssetBundle('app');
<?php $this->head(); ?>
</head>
<body>
<?php $this->beginBody(); ?>
<div class="container">
<?php $this->beginBody(); ?>
<div class="masthead">
<h3 class="muted">My Company</h3>
@ -57,8 +57,8 @@ $this->registerAssetBundle('app');
Template by <a href="http://twitter.github.io/bootstrap/">Twitter Bootstrap</a>
</p>
</div>
<?php $this->endBody(); ?>
</div>
<?php $this->endBody(); ?>
</body>
</html>
<?php $this->endPage(); ?>

View File

@ -2,6 +2,7 @@
// comment out the following line to disable debug mode
defined('YII_DEBUG') or define('YII_DEBUG', true);
defined('YII_ENV') or define('YII_ENV', 'dev');
require(__DIR__ . '/../vendor/yiisoft/yii2/yii/Yii.php');
require(__DIR__ . '/../vendor/autoload.php');