_menu.php 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. <?php
  2. /*
  3. * This file is part of the Dektrium project
  4. *
  5. * (c) Dektrium project <http://github.com/dektrium>
  6. *
  7. * For the full copyright and license information, please view the LICENSE.md
  8. * file that was distributed with this source code.
  9. */
  10. use yii\bootstrap\Nav;
  11. ?>
  12. <?/*= Nav::widget([
  13. 'options' => [
  14. 'class' => 'nav-tabs',
  15. 'style' => 'margin-bottom: 15px',
  16. ],
  17. 'items' => [
  18. [
  19. 'label' => Yii::t('rbac', 'Users'),
  20. 'url' => ['/user/admin/index'],
  21. ],
  22. [
  23. 'label' => Yii::t('rbac', 'Roles'),
  24. 'url' => ['/rbac/role/index'],
  25. 'visible' => isset(Yii::$app->extensions['dektrium/yii2-rbac']),
  26. ],
  27. [
  28. 'label' => Yii::t('rbac', 'Permissions'),
  29. 'url' => ['/rbac/permission/index'],
  30. 'visible' => isset(Yii::$app->extensions['dektrium/yii2-rbac']),
  31. ],
  32. [
  33. 'label' => Yii::t('rbac', 'Create'),
  34. 'items' => [
  35. [
  36. 'label' => Yii::t('rbac', 'New user'),
  37. 'url' => ['/user/admin/create'],
  38. ],
  39. [
  40. 'label' => Yii::t('rbac', 'New role'),
  41. 'url' => ['/rbac/role/create'],
  42. 'visible' => isset(Yii::$app->extensions['dektrium/yii2-rbac']),
  43. ],
  44. [
  45. 'label' => Yii::t('rbac', 'New permission'),
  46. 'url' => ['/rbac/permission/create'],
  47. 'visible' => isset(Yii::$app->extensions['dektrium/yii2-rbac']),
  48. ],
  49. ],
  50. ],
  51. ],
  52. ]) */?>