@@ -189,6 +189,9 @@ |
||
| 189 | 189 | } |
| 190 | 190 | } |
| 191 | 191 | |
| 192 | + /** |
|
| 193 | + * @param string $controller |
|
| 194 | + */ |
|
| 192 | 195 | private function checkForHandler($controller, $handler) |
| 193 | 196 | { |
| 194 | 197 | if(!method_exists($controller, $handler)) { |
@@ -179,7 +179,9 @@ |
||
| 179 | 179 | private function searchForApplyViewRules($key, $value) |
| 180 | 180 | { |
| 181 | 181 | if($key == $this->action) { |
| 182 | - if(!$this->checkForHandler($this->controller, $value)) return; |
|
| 182 | + if(!$this->checkForHandler($this->controller, $value)) { |
|
| 183 | + return; |
|
| 184 | + } |
|
| 183 | 185 | |
| 184 | 186 | if(!$this->controller->$value()){ |
| 185 | 187 | $this->redirectIfIsSet(); |