| @@ 9-32 (lines=24) @@ | ||
| 6 | /** |
|
| 7 | * Customers Back-end Controller. |
|
| 8 | */ |
|
| 9 | class Customers extends BackendController |
|
| 10 | { |
|
| 11 | public $formConfig = 'config_form.yaml'; |
|
| 12 | ||
| 13 | public $listConfig = 'config_list.yaml'; |
|
| 14 | ||
| 15 | public $implement = [ |
|
| 16 | 'Backend.Behaviors.FormController', |
|
| 17 | 'Backend.Behaviors.ListController', |
|
| 18 | 'Owl.Behaviors.ListDelete.Behavior', |
|
| 19 | ]; |
|
| 20 | ||
| 21 | public $registerPermissions = [ |
|
| 22 | 'bedard.shop.customers.manage', |
|
| 23 | ]; |
|
| 24 | ||
| 25 | public function __construct() |
|
| 26 | { |
|
| 27 | parent::__construct(); |
|
| 28 | ||
| 29 | BackendMenu::setContext('Bedard.Shop', 'shop', 'customers'); |
|
| 30 | $this->addJs('/plugins/bedard/shop/assets/dist/customers.js'); |
|
| 31 | } |
|
| 32 | } |
|
| 33 | ||
| @@ 9-32 (lines=24) @@ | ||
| 6 | /** |
|
| 7 | * Promotions Back-end Controller. |
|
| 8 | */ |
|
| 9 | class Promotions extends BackendController |
|
| 10 | { |
|
| 11 | public $implement = [ |
|
| 12 | 'Backend.Behaviors.FormController', |
|
| 13 | 'Backend.Behaviors.ListController', |
|
| 14 | 'Owl.Behaviors.ListDelete.Behavior', |
|
| 15 | ]; |
|
| 16 | ||
| 17 | public $formConfig = 'config_form.yaml'; |
|
| 18 | ||
| 19 | public $listConfig = 'config_list.yaml'; |
|
| 20 | ||
| 21 | public $registerPermissions = [ |
|
| 22 | 'bedard.shop.promotions.manage', |
|
| 23 | ]; |
|
| 24 | ||
| 25 | public function __construct() |
|
| 26 | { |
|
| 27 | parent::__construct(); |
|
| 28 | ||
| 29 | BackendMenu::setContext('Bedard.Shop', 'shop', 'promotions'); |
|
| 30 | $this->addJs('/plugins/bedard/shop/assets/dist/promotions.js'); |
|
| 31 | } |
|
| 32 | } |
|
| 33 | ||