From 5d9cd76a7112b532e97be42352ef9c0ff809f0e9 Mon Sep 17 00:00:00 2001 From: Alexander Makarov Date: Thu, 28 Nov 2013 16:03:45 +0400 Subject: [PATCH] Provided example setting YII_DEBUG to false --- docs/guide/configuration.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/docs/guide/configuration.md b/docs/guide/configuration.md index 5f1d8e0..11f2470 100644 --- a/docs/guide/configuration.md +++ b/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 --------------------------------