protected function view($name, array $data = array())
    {
        $tpl = $this->viewEngine->template($name);
        $tpl->vars->add($data);

        return $tpl->render();
    }
protected function view($name, array $data = array())
    {
        $tpl = $this->viewEngine->template($name);
        $tpl->vars->add($data);

        return $tpl->render();
    }
protected function view ( $ name , array $ data = array ( ) ) { $ tpl = $ this -> viewEngine -> template ( $ name ) ; $ tpl -> vars -> add ( $ data ) ; return $ tpl -> render ( ) ; }
Render Template View
@param $name
@param array $data
@return string
Render Template View