Browse code

Controllers from routing params development

RafaƂ Szklarczyk authored on 23/05/2019 20:54:39
Showing 1 changed files
... ...
@@ -135,7 +135,12 @@ class Application{
135 135
                 .$module
136 136
                 .$this->controllersDirecotry."\\"
137 137
                 .$controller;
138
-            $controller_object = new $controller_class;
138
+            try{
139
+                $controller_object = new $controller_class;
140
+            }
141
+            catch(Exception $e){
142
+                var_dump($e);
143
+            }
139 144
 
140 145
             if(\preg_match($field_pattern, $controllerAction['action'], $match) ){
141 146
                 $controller_action = $this->router->parsedParameters[$match['field']];