protected function _render($ui, $data = array())
    {
        $data['helper'] = $this;
        $file = '_ui_'.$ui.'.php';
        $data = AnConfig::unbox($data);

        return (string) $this->_template->loadTemplate('_ui_'.$ui, $data);
    }
protected function _render($ui, $data = array())
    {
        $data['helper'] = $this;
        $file = '_ui_'.$ui.'.php';
        $data = AnConfig::unbox($data);

        return (string) $this->_template->loadTemplate('_ui_'.$ui, $data);
    }
protected function _render ( $ ui , $ data = array ( ) ) { $ data [ 'helper' ] = $ this ; $ file = '_ui_' . $ ui . '.php' ; $ data = AnConfig :: unbox ( $ data ) ; return ( string ) $ this -> _template -> loadTemplate ( '_ui_' . $ ui , $ data ) ; }
Renders a string using the template. We are using loadString as opposed to loadTempalte
or loadFile in order to avoid changing the state of the template.

@param string $ui
@param array  $data

@return string
Renders a string using the template . We are using loadString as opposed to loadTempalte or loadFile in order to avoid changing the state of the template .