anggagewor

Untitled

Oct 16th, 2017
278
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 2.68 KB | None | 0 0
  1.  
  2. //------ Function 1
  3.     public function base_menu()
  4.     {
  5.         $menus = [
  6.             'base' =>
  7.             [
  8.                 'dashboard' =>
  9.                     [      
  10.                         'url'           => 'backend',
  11.                         'icon'          => 'fa fa-home',
  12.                         'permission'    => 'permission',
  13.                         'role'          => false,
  14.                         'string'        => 'Dashboard',
  15.                         'trans'         => 'Base::navigation.backend.navigation.dashboard',
  16.                         'sequence'      => '1'
  17.                     ],
  18.                 'role' =>
  19.                     [      
  20.                         'url'           => 'backend/roles',
  21.                         'icon'          => 'fa fa-lock',
  22.                         'permission'    => 'view.role.menu',
  23.                         'role'          => false,
  24.                         'string'        => 'Role & Permission',
  25.                         'trans'         => false,
  26.                         'sequence'      => '1'
  27.                     ],
  28.                 'settings' =>
  29.                     [      
  30.                         'url'           => false,
  31.                         'icon'          => 'fa fa-cogs',
  32.                         'permission'    => 'permission',
  33.                         'role'          => 'role',
  34.                         'string'        => 'Settings',
  35.                         'trans'         => false,
  36.                         'sequence'      => '1'
  37.                     ],
  38.                 'users' =>
  39.                     [      
  40.                         'url'           => 'backend/users',
  41.                         'icon'          => 'fa fa-users',
  42.                         'permission'    => 'user.index',
  43.                         'role'          => false,
  44.                         'string'        => 'Users',
  45.                         'trans'         => false,
  46.                         'sequence'      => '1'
  47.                     ]
  48.             ],
  49.         ];
  50.  
  51.         return $menus;
  52.     }
  53.  
  54. //------ function 2
  55.  
  56.  
  57.     public function voucher_menu()
  58.     {
  59.         $menus = [
  60.             'Voucher' =>
  61.             [
  62.                 'Voucher' =>
  63.                     [      
  64.                         'url'           => 'backend/voucher',
  65.                         'icon'          => 'fa fa-home',
  66.                         'permission'    => 'permission',
  67.                         'role'          => false,
  68.                         'string'        => 'Voucher',
  69.                         'trans'         => '',
  70.                         'sequence'      => '1'
  71.                     ]
  72.             ],
  73.         ];
  74.  
  75.         return $menus;
  76.     }
Advertisement
Add Comment
Please, Sign In to add comment