octicon-rss(16/)
You've already forked yii2
mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-10 02:13:17 +08:00
w
This commit is contained in:
octicon-git-branch(16/)
octicon-tag(16/)
octicon-diff(16/tw-mr-1) 2 changed files with 7 additions and 43 deletions
@@ -317,9 +317,6 @@ class YiiBase
|
||||
* pairs in the array will be used to initialize the corresponding object properties.
|
||||
* For example,
|
||||
*
|
||||
* Any additional parameters passed to this method will be
|
||||
* passed to the constructor of the object being created.
|
||||
*
|
||||
* ~~~
|
||||
* $component = Yii::createComponent('@app/components/GoogleMap');
|
||||
* $component = Yii::createComponent('\application\components\GoogleMap');
|
||||
@@ -329,6 +326,13 @@ class YiiBase
|
||||
* ));
|
||||
* ~~~
|
||||
*
|
||||
* Any additional parameters passed to this method will be
|
||||
* passed to the constructor of the object being created.
|
||||
*
|
||||
* If a component class implements the [[\yii\base\Initable]] interface,
|
||||
* its [[\yii\base\Initable::init|init]] method will be invoked after
|
||||
* its properties have been initialized.
|
||||
*
|
||||
* @param mixed $config the configuration. It can be either a string or an array.
|
||||
* @return mixed the created object
|
||||
* @throws \yii\base\Exception if the configuration does not have a 'class' element.
|
||||
|
||||
Reference in New Issue
Block a user