From 2509748fdaf46dd78b2fd47ff1cec4b9d8e626fe Mon Sep 17 00:00:00 2001 From: Qiang Xue Date: Mon, 4 Nov 2013 06:27:27 -0500 Subject: [PATCH] Fixes #1134: doc fix. --- framework/yii/BaseYii.php | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/framework/yii/BaseYii.php b/framework/yii/BaseYii.php index 09312c3..7f933b4 100644 --- a/framework/yii/BaseYii.php +++ b/framework/yii/BaseYii.php @@ -321,18 +321,12 @@ class BaseYii * the rest of the name-value pairs in the array will be used to initialize * the corresponding object properties. * - * The object type can be either a class name or the [[getAlias()|alias]] of - * the class. For example, - * - * - `app\components\GoogleMap`: fully-qualified namespaced class. - * - `@app/components/GoogleMap`: an alias, used for non-namespaced class. - * * Below are some usage examples: * * ~~~ * $object = \Yii::createObject('@app/components/GoogleMap'); * $object = \Yii::createObject([ - * 'class' => '\app\components\GoogleMap', + * 'class' => 'app\components\GoogleMap', * 'apiKey' => 'xyz', * ]); * ~~~