public function render(array $vars = array())
    {
        $templateFile = $this->getTemplateRouter()->findTemplateFile($this->getRequest());
        if ($templateFile) {
            return $this->getAppController()->render($templateFile, $vars);
        }
        return $this->getAppController()->error404();
    }
public function render(array $vars = array())
    {
        $templateFile = $this->getTemplateRouter()->findTemplateFile($this->getRequest());
        if ($templateFile) {
            return $this->getAppController()->render($templateFile, $vars);
        }
        return $this->getAppController()->error404();
    }
public function render ( array $ vars = array ( ) ) { $ templateFile = $ this -> getTemplateRouter ( ) -> findTemplateFile ( $ this -> getRequest ( ) ) ; if ( $ templateFile ) { return $ this -> getAppController ( ) -> render ( $ templateFile , $ vars ) ; } return $ this -> getAppController ( ) -> error404 ( ) ; }
renders the template associated with the current route.

@param array $vars
@return mixed
renders the template associated with the current route .