Browse Source

Provided example setting YII_DEBUG to false

tags/2.0.0-beta
Alexander Makarov 11 years ago
parent
commit
5d9cd76a71
  1. 6
      docs/guide/configuration.md

6
docs/guide/configuration.md

@ -21,7 +21,11 @@ console applications it's `yii`. Both are doing nearly the same job:
5. Creating new application instance using `$config` and running it.
The Bootstrap file is not the part of framework but your application so it's OK to adjust it to fit your application. Typical
adjustments are the value of `YII_DEBUG` that should never be `true` on production and the way config is read.
adjustments are the value of `YII_DEBUG` that should never be `true` on production and the way config is read:
```php
defined('YII_DEBUG') or define('YII_DEBUG', false);
```
Configuring application instance
--------------------------------

Loading…
Cancel
Save