src/SlimController/SlimController.php
protected function render($template, $args = array())
    {
        if (!is_null($this->renderTemplateSuffix)
            && !preg_match('/\.' . $this->renderTemplateSuffix . '$/', $template)
        ) {
            $template .= '.' . $this->renderTemplateSuffix;
        }
        $this->app->render($template, $args);
    }
protected function render($template, $args = array())
    {
        if (!is_null($this->renderTemplateSuffix)
            && !preg_match('/\.' . $this->renderTemplateSuffix . '$/', $template)
        ) {
            $template .= '.' . $this->renderTemplateSuffix;
        }
        $this->app->render($template, $args);
    }
protected function render ( $ template , $ args = array ( ) ) { if ( ! is_null ( $ this -> renderTemplateSuffix ) && ! preg_match ( '/\.' . $ this -> renderTemplateSuffix . '$/' , $ template ) ) { $ template .= '.' . $ this -> renderTemplateSuffix ; } $ this -> app -> render ( $ template , $ args ) ; }
Renders output with given template

@param string $template Name of the template to be rendererd
@param array  $args     Args for view
Renders output with given template