| ... | ... |
@@ -135,11 +135,12 @@ class Application{
|
| 135 | 135 |
.$module |
| 136 | 136 |
.$this->controllersDirecotry."\\" |
| 137 | 137 |
.$controller; |
| 138 |
- try{
|
|
| 138 |
+ |
|
| 139 |
+ if(class_exists($controller_class,true)){
|
|
| 139 | 140 |
$controller_object = new $controller_class; |
| 140 | 141 |
} |
| 141 |
- catch(Exception $e){
|
|
| 142 |
- var_dump($e); |
|
| 142 |
+ else{
|
|
| 143 |
+ return $this->handle404($this->request); |
|
| 143 | 144 |
} |
| 144 | 145 |
|
| 145 | 146 |
if(\preg_match($field_pattern, $controllerAction['action'], $match) ){
|