Browse Source

Merge pull request #730 from Ryadnov/fix_typos_in_docs

fix typos - `Yii::app()`
tags/2.0.0-beta
Qiang Xue 11 years ago
parent
commit
eb0b00f8a0
  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**
*
* ~~~
* 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

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' => '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