Please use $app->renderView() instead