initial implementation of Yii debugger.
This commit is contained in:
parent
9664884e02
commit
06f0b41c38
@ -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',
|
||||
|
@ -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(); ?>
|
||||
|
@ -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');
|
||||
|
Loading…
Reference in New Issue
Block a user