File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 5555
5656if (!is_null ($ route )){
5757 if (isset ($ route ['controller ' ])) {
58-
58+
5959 $ controlling = explode (':: ' ,$ route ['controller ' ]);
6060
6161 $ controller = $ controlling [0 ];
6464 $ controller ->addFunctions (array ($ assets , $ path ));
6565 $ method = $ controlling [1 ];
6666
67- call_user_func_array (array ($ controller , $ method ), $ route ['route_params ' ]);
68-
67+ echo call_user_func_array (array ($ controller , $ method ), $ route ['route_params ' ]);
68+
6969 }elseif (isset ($ route ['template ' ])) {
7070
7171 $ twiger = new Twiger ( array_merge ($ constants , $ route ['params ' ]) );
7272 $ twiger ->addFunctions (array ($ assets , $ path ));
73- $ twiger ->render ($ route ['template ' ].'.html.twig ' , $ route ['route_params ' ] );
73+ echo $ twiger ->render ($ route ['template ' ].'.html.twig ' , $ route ['route_params ' ] );
7474
7575 }
7676}else {
7777 $ twiger = new Twiger ();
7878 $ twiger ->addFunctions (array ($ assets , $ path ));
79- $ twiger ->render ('404.html.twig ' , array ('route ' => $ requestUri ));
79+ echo $ twiger ->render ('404.html.twig ' , array ('route ' => $ requestUri ));
8080 http_response_code (404 );
8181}
You can’t perform that action at this time.
0 commit comments