for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
use Slim\Middleware;
class Xhgui_Middleware_Render extends Middleware
{
public function call()
$app = $this->app;
// Run the controller action/route function
$this->next->call();
// Render the template.
if (isset($app->controller)) {
$app->controller->render();
}