Commit eb0b00f8 by Qiang Xue

Merge pull request #730 from Ryadnov/fix_typos_in_docs

fix typos - `Yii::app()`
parents 22b5f9ea 24096248
...@@ -515,7 +515,7 @@ class Response extends \yii\base\Response ...@@ -515,7 +515,7 @@ class Response extends \yii\base\Response
* **Example** * **Example**
* *
* ~~~ * ~~~
* Yii::app()->request->xSendFile('/home/user/Pictures/picture1.jpg'); * Yii::$app->request->xSendFile('/home/user/Pictures/picture1.jpg');
* ~~~ * ~~~
* *
* @param string $filePath file name with full path * @param string $filePath file name with full path
......
...@@ -37,7 +37,7 @@ use yii\helpers\Html; ...@@ -37,7 +37,7 @@ use yii\helpers\Html;
* array('label' => 'New Arrivals', 'url' => array('product/index', 'tag' => 'new')), * array('label' => 'New Arrivals', 'url' => array('product/index', 'tag' => 'new')),
* array('label' => 'Most Popular', 'url' => array('product/index', 'tag' => 'popular')), * array('label' => 'Most Popular', 'url' => array('product/index', 'tag' => 'popular')),
* )), * )),
* array('label' => 'Login', 'url' => array('site/login'), 'visible' => Yii::app()->user->isGuest), * array('label' => 'Login', 'url' => array('site/login'), 'visible' => Yii::$app->user->isGuest),
* ), * ),
* )); * ));
* ~~~ * ~~~
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment