Browse Source

fix typos - `Yii::app()`

tags/2.0.0-beta
Ryadnov 11 years ago
parent
commit
2409624894
  1. 2
      framework/yii/web/Response.php
  2. 2
      framework/yii/widgets/Menu.php

2
framework/yii/web/Response.php

@ -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

2
framework/yii/widgets/Menu.php

@ -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),
* ), * ),
* )); * ));
* ~~~ * ~~~

Loading…
Cancel
Save