From 2409624894cde7ac3934e0ddf8f87aa7d14c48c9 Mon Sep 17 00:00:00 2001 From: Ryadnov <2008.big@gmail.com> Date: Thu, 8 Aug 2013 21:15:46 +0400 Subject: [PATCH] fix typos - `Yii::app()` --- framework/yii/web/Response.php | 2 +- framework/yii/widgets/Menu.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/framework/yii/web/Response.php b/framework/yii/web/Response.php index 6bb888c..c7855f6 100644 --- a/framework/yii/web/Response.php +++ b/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 diff --git a/framework/yii/widgets/Menu.php b/framework/yii/widgets/Menu.php index 5b5d48c..40fd479 100644 --- a/framework/yii/widgets/Menu.php +++ b/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), * ), * )); * ~~~