Shoude be good or bad when using global $app or $container in helper function?
Ex:
function view($name, $args = [], $status = 200) {
global $container;
$view = str_replace(".", "/", $name);
return $container->view->render($container->response->withStatus($status), $view . '.php',$args);
}