protected function render($tmpl, $in_data=array()) {
        try {
            $data            = array();
            $app             = array();
            $app['content']  = $in_data;
            $app['settings'] = $this->_viewData['settings'];

            $data['app']     = $app; 
            $data['global']  = array('styles'=>$this->_viewData['styles']);
            $data['device']  = $this->_viewData['device'];

            return $this->_renderer->render($tmpl, $data);
        } catch (\Exception $e) {
            return 'Issues with data, cannot be rendered';
        }//end try

    }
protected function render($tmpl, $in_data=array()) {
        try {
            $data            = array();
            $app             = array();
            $app['content']  = $in_data;
            $app['settings'] = $this->_viewData['settings'];

            $data['app']     = $app; 
            $data['global']  = array('styles'=>$this->_viewData['styles']);
            $data['device']  = $this->_viewData['device'];

            return $this->_renderer->render($tmpl, $data);
        } catch (\Exception $e) {
            return 'Issues with data, cannot be rendered';
        }//end try

    }
protected function render ( $ tmpl , $ in_data = array ( ) ) { try { $ data = array ( ) ; $ app = array ( ) ; $ app [ 'content' ] = $ in_data ; $ app [ 'settings' ] = $ this -> _viewData [ 'settings' ] ; $ data [ 'app' ] = $ app ; $ data [ 'global' ] = array ( 'styles' => $ this -> _viewData [ 'styles' ] ) ; $ data [ 'device' ] = $ this -> _viewData [ 'device' ] ; return $ this -> _renderer -> render ( $ tmpl , $ data ) ; } catch ( \ Exception $ e ) { return 'Issues with data, cannot be rendered' ; } //end try }
Renders a given template along with input data.

@param mixed $tmpl    The template to render.
@param mixed $in_data The data to render with.

@access protected
@return void
Renders a given template along with input data .