|  | @@ -81,7 +81,7 @@  discard block | 
                                                    
                                                        |  |  |  block discarded – undo | 
                                                                                                                                                                                                                    
                                                            | 81 | 81 |                  $this->twig->addGlobal('url_params', $request->getParams()); | 
                                                                                                            
                                                            | 82 | 82 |              } | 
                                                                                                            
                                                            | 83 | 83 |   | 
                                                                                                            
                                                            | 84 |  | -            $function_name = $route.'_'.$action; | 
                                                                                                            
                                                            |  | 84 | +            $function_name = $route . '_' . $action; | 
                                                                                                            
                                                            | 85 | 85 |              if (!function_exists($function_name)) { | 
                                                                                                            
                                                            | 86 | 86 |                  return $this->notFound($request, $response, $return_type, 'Controller ' . $route . '/' . $action . " has not " . $function_name . " function"); | 
                                                                                                            
                                                            | 87 | 87 |              } | 
                                                                                                                                                        
                                                        |  | @@ -115,7 +115,7 @@  discard block | 
                                                    
                                                        |  |  |  block discarded – undo | 
                                                                                                                                                                                                                    
                                                            | 115 | 115 |                  $main_template = '/' . $this->config['app_dir'] . '/templates/_' . $main_template_name . '.html'; | 
                                                                                                            
                                                            | 116 | 116 |   | 
                                                                                                            
                                                            | 117 | 117 |                  if (!file_exists($this->config['base_dir'] . $main_template)) { | 
                                                                                                            
                                                            | 118 |  | -                    throw new \Exception("<strong>Main emplate file not found!</strong> ".$route . '/' . $action . | 
                                                                                                            
                                                            |  | 118 | +                    throw new \Exception("<strong>Main emplate file not found!</strong> " . $route . '/' . $action . | 
                                                                                                            
                                                            | 119 | 119 |                                              " needs a main template file at:" . $main_template); | 
                                                                                                            
                                                            | 120 | 120 |                  } | 
                                                                                                            
                                                            | 121 | 121 |                  $app_content = $this->twig->render($main_template, $function_output); | 
                                                                                                                                                
                                         
                                        
                                            
                                                                                                    Please login to merge, or discard this patch.