Browse Source

fixes #1055

tags/2.0.0-beta
Alexander Makarov 11 years ago
parent
commit
2ce09559a2
  1. 4
      framework/yii/bootstrap/Carousel.php
  2. 2
      framework/yii/bootstrap/Nav.php
  3. 2
      framework/yii/data/ArrayDataProvider.php
  4. 2
      framework/yii/log/Logger.php
  5. 6
      framework/yii/web/AccessControl.php
  6. 6
      framework/yii/widgets/Menu.php

4
framework/yii/bootstrap/Carousel.php

@ -29,8 +29,8 @@ use yii\helpers\Html;
* 'caption' => '<h4>This is title</h4><p>This is the caption text</p>',
* 'options' => [...],
* ],
* )
* ));
* ]
* ]);
* ```
*
* @see http://twitter.github.io/bootstrap/javascript.html#carousel

2
framework/yii/bootstrap/Nav.php

@ -24,7 +24,7 @@ use yii\helpers\Html;
* 'label' => 'Home',
* 'url' => ['site/index'],
* 'linkOptions' => [...],
* ),
* ],
* [
* 'label' => 'Dropdown',
* 'items' => [

2
framework/yii/data/ArrayDataProvider.php

@ -33,7 +33,7 @@ use yii\helpers\ArrayHelper;
* 'allModels' => $query->from('tbl_post')->all(),
* 'sort' => [
* 'attributes' => ['id', 'username', 'email'],
* ),
* ],
* 'pagination' => [
* 'pageSize' => 10,
* ],

2
framework/yii/log/Logger.php

@ -39,7 +39,7 @@ use yii\base\InvalidConfigException;
* 'class' => 'yii\log\FileTarget',
* 'levels' => ['trace', 'info'],
* 'categories' => ['yii\*'],
* ),
* ],
* 'email' => [
* 'class' => 'yii\log\EmailTarget',
* 'levels' => ['error', 'warning'],

6
framework/yii/web/AccessControl.php

@ -42,9 +42,9 @@ use yii\base\ActionFilter;
* 'roles' => ['@'],
* ],
* // everything else is denied
* ),
* ),
* );
* ],
* ],
* ];
* }
* ~~~
*

6
framework/yii/widgets/Menu.php

@ -33,13 +33,13 @@ use yii\helpers\Html;
* // not just as 'controller' even if default action is used.
* ['label' => 'Home', 'url' => ['site/index']],
* // 'Products' menu item will be selected as long as the route is 'product/index'
* ['label' => 'Products', 'url' => ['product/index'), 'items' => [
* ['label' => 'Products', 'url' => ['product/index'], 'items' => [
* ['label' => 'New Arrivals', 'url' => ['product/index', 'tag' => 'new']],
* ['label' => 'Most Popular', 'url' => ['product/index', 'tag' => 'popular']],
* ]],
* ['label' => 'Login', 'url' => ['site/login'], 'visible' => Yii::$app->user->isGuest],
* ),
* ));
* ],
* ]);
* ~~~
*
* @author Qiang Xue <qiang.xue@gmail.com>

Loading…
Cancel
Save