@@ -47,8 +47,9 @@ |
||
47 | 47 | if(isset($this->injected)){ |
48 | 48 | $view=$this->injected->getView(); |
49 | 49 | $this->compile($view); |
50 | - if (isset($parameters)) |
|
51 | - $view->setVars($parameters); |
|
50 | + if (isset($parameters)) { |
|
51 | + $view->setVars($parameters); |
|
52 | + } |
|
52 | 53 | return $view->render($viewName, $asString); |
53 | 54 | } |
54 | 55 | throw new \Exception(get_class()." instance is not properly instancied : you omitted the second parameter \$controller!"); |