public function renderHtml($template=null, $data=null)
    {
        $this->beforeRender($data);
        
        $this->beforeRenderView();
        
        $template = !empty($template) ? $template : $this->getName();
        
        $string = $this->module->getView()->render($template, $this->responseData());
        
        return $this->renderText($string);
    }
public function renderHtml($template=null, $data=null)
    {
        $this->beforeRender($data);
        
        $this->beforeRenderView();
        
        $template = !empty($template) ? $template : $this->getName();
        
        $string = $this->module->getView()->render($template, $this->responseData());
        
        return $this->renderText($string);
    }
public function renderHtml ( $ template = null , $ data = null ) { $ this -> beforeRender ( $ data ) ; $ this -> beforeRenderView ( ) ; $ template = ! empty ( $ template ) ? $ template : $ this -> getName ( ) ; $ string = $ this -> module -> getView ( ) -> render ( $ template , $ this -> responseData ( ) ) ; return $ this -> renderText ( $ string ) ; }
render html from template
@param  string $template
@param  array  $data
@return ResponseInterface
render html from template