@@ 58-68 (lines=11) @@ | ||
55 | * |
|
56 | * @throws \JBZoo\Utils\Exception |
|
57 | */ |
|
58 | public function initialize() |
|
59 | { |
|
60 | parent::initialize(); |
|
61 | $this->cms = Cms::getInstance(); |
|
62 | $this->_setTheme(); |
|
63 | ||
64 | $pluginEvent = Plugin::getData('Core', 'Controller.initialize'); |
|
65 | if (is_callable($pluginEvent->find(0)) && Plugin::hasManifestEvent('Controller.initialize')) { |
|
66 | call_user_func_array($pluginEvent->find(0), [$this]); |
|
67 | } |
|
68 | } |
|
69 | ||
70 | /** |
|
71 | * Called after the controller action is run, but before the view is rendered. You can use this method |
|
@@ 102-110 (lines=9) @@ | ||
99 | * |
|
100 | * @throws \JBZoo\Utils\Exception |
|
101 | */ |
|
102 | public function beforeFilter(Event $event) |
|
103 | { |
|
104 | EventManager::trigger('Controller.setup', $this); |
|
105 | ||
106 | $pluginEvent = Plugin::getData('Core', 'Controller.beforeFilter'); |
|
107 | if (is_callable($pluginEvent->find(0)) && Plugin::hasManifestEvent('Controller.beforeFilter')) { |
|
108 | call_user_func_array($pluginEvent->find(0), [$this, $event]); |
|
109 | } |
|
110 | } |
|
111 | ||
112 | /** |
|
113 | * The beforeRedirect method is invoked when the controller's redirect method is called but before any |
@@ 91-100 (lines=10) @@ | ||
88 | * |
|
89 | * @throws \JBZoo\Utils\Exception |
|
90 | */ |
|
91 | public function initialize() |
|
92 | { |
|
93 | parent::initialize(); |
|
94 | $this->cms = Cms::getInstance(); |
|
95 | ||
96 | $pluginEvent = Plugin::getData('Core', 'View.initialize'); |
|
97 | if (is_callable($pluginEvent->find(0)) && Plugin::hasManifestEvent('View.initialize')) { |
|
98 | call_user_func_array($pluginEvent->find(0), [$this]); |
|
99 | } |
|
100 | } |
|
101 | ||
102 | /** |
|
103 | * Render layout partial. |