From 2509748fdaf46dd78b2fd47ff1cec4b9d8e626fe Mon Sep 17 00:00:00 2001 From: Qiang Xue Date: Mon, 4 Nov 2013 06:27:27 -0500 Subject: [PATCH 1/2] 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', * ]); * ~~~ From e8da628d75440879c20c962a19b95cf540279d39 Mon Sep 17 00:00:00 2001 From: Qiang Xue Date: Mon, 4 Nov 2013 07:20:09 -0500 Subject: [PATCH 2/2] doc fix --- framework/yii/BaseYii.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/framework/yii/BaseYii.php b/framework/yii/BaseYii.php index 7f933b4..011a9c7 100644 --- a/framework/yii/BaseYii.php +++ b/framework/yii/BaseYii.php @@ -324,7 +324,7 @@ class BaseYii * Below are some usage examples: * * ~~~ - * $object = \Yii::createObject('@app/components/GoogleMap'); + * $object = \Yii::createObject('app\components\GoogleMap'); * $object = \Yii::createObject([ * 'class' => 'app\components\GoogleMap', * 'apiKey' => 'xyz',