mirror of
https://github.com/yiisoft/yii2.git
synced 2025-08-23 04:00:23 +08:00
fixes #1055
This commit is contained in:
@ -29,8 +29,8 @@ use yii\helpers\Html;
|
|||||||
* 'caption' => '<h4>This is title</h4><p>This is the caption text</p>',
|
* 'caption' => '<h4>This is title</h4><p>This is the caption text</p>',
|
||||||
* 'options' => [...],
|
* 'options' => [...],
|
||||||
* ],
|
* ],
|
||||||
* )
|
* ]
|
||||||
* ));
|
* ]);
|
||||||
* ```
|
* ```
|
||||||
*
|
*
|
||||||
* @see http://twitter.github.io/bootstrap/javascript.html#carousel
|
* @see http://twitter.github.io/bootstrap/javascript.html#carousel
|
||||||
|
@ -24,7 +24,7 @@ use yii\helpers\Html;
|
|||||||
* 'label' => 'Home',
|
* 'label' => 'Home',
|
||||||
* 'url' => ['site/index'],
|
* 'url' => ['site/index'],
|
||||||
* 'linkOptions' => [...],
|
* 'linkOptions' => [...],
|
||||||
* ),
|
* ],
|
||||||
* [
|
* [
|
||||||
* 'label' => 'Dropdown',
|
* 'label' => 'Dropdown',
|
||||||
* 'items' => [
|
* 'items' => [
|
||||||
|
@ -33,7 +33,7 @@ use yii\helpers\ArrayHelper;
|
|||||||
* 'allModels' => $query->from('tbl_post')->all(),
|
* 'allModels' => $query->from('tbl_post')->all(),
|
||||||
* 'sort' => [
|
* 'sort' => [
|
||||||
* 'attributes' => ['id', 'username', 'email'],
|
* 'attributes' => ['id', 'username', 'email'],
|
||||||
* ),
|
* ],
|
||||||
* 'pagination' => [
|
* 'pagination' => [
|
||||||
* 'pageSize' => 10,
|
* 'pageSize' => 10,
|
||||||
* ],
|
* ],
|
||||||
|
@ -39,7 +39,7 @@ use yii\base\InvalidConfigException;
|
|||||||
* 'class' => 'yii\log\FileTarget',
|
* 'class' => 'yii\log\FileTarget',
|
||||||
* 'levels' => ['trace', 'info'],
|
* 'levels' => ['trace', 'info'],
|
||||||
* 'categories' => ['yii\*'],
|
* 'categories' => ['yii\*'],
|
||||||
* ),
|
* ],
|
||||||
* 'email' => [
|
* 'email' => [
|
||||||
* 'class' => 'yii\log\EmailTarget',
|
* 'class' => 'yii\log\EmailTarget',
|
||||||
* 'levels' => ['error', 'warning'],
|
* 'levels' => ['error', 'warning'],
|
||||||
|
@ -42,9 +42,9 @@ use yii\base\ActionFilter;
|
|||||||
* 'roles' => ['@'],
|
* 'roles' => ['@'],
|
||||||
* ],
|
* ],
|
||||||
* // everything else is denied
|
* // everything else is denied
|
||||||
* ),
|
* ],
|
||||||
* ),
|
* ],
|
||||||
* );
|
* ];
|
||||||
* }
|
* }
|
||||||
* ~~~
|
* ~~~
|
||||||
*
|
*
|
||||||
|
@ -33,13 +33,13 @@ use yii\helpers\Html;
|
|||||||
* // not just as 'controller' even if default action is used.
|
* // not just as 'controller' even if default action is used.
|
||||||
* ['label' => 'Home', 'url' => ['site/index']],
|
* ['label' => 'Home', 'url' => ['site/index']],
|
||||||
* // 'Products' menu item will be selected as long as the route is 'product/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' => 'New Arrivals', 'url' => ['product/index', 'tag' => 'new']],
|
||||||
* ['label' => 'Most Popular', 'url' => ['product/index', 'tag' => 'popular']],
|
* ['label' => 'Most Popular', 'url' => ['product/index', 'tag' => 'popular']],
|
||||||
* ]],
|
* ]],
|
||||||
* ['label' => 'Login', 'url' => ['site/login'], 'visible' => Yii::$app->user->isGuest],
|
* ['label' => 'Login', 'url' => ['site/login'], 'visible' => Yii::$app->user->isGuest],
|
||||||
* ),
|
* ],
|
||||||
* ));
|
* ]);
|
||||||
* ~~~
|
* ~~~
|
||||||
*
|
*
|
||||||
* @author Qiang Xue <qiang.xue@gmail.com>
|
* @author Qiang Xue <qiang.xue@gmail.com>
|
||||||
|
Reference in New Issue
Block a user