protected function load($filename, $data = array(), $return = false)
    {
        $template = $this->createSubTemplate();

        try {
            return $template->renderTemplate($filename, $data, $return);
        } catch (\Exception $exception) {
            if (!empty($this->log))
            {
                $this->log->error("Failed to render template " . $filename, $exception);
            }
            return '';
        }
    }
protected function load($filename, $data = array(), $return = false)
    {
        $template = $this->createSubTemplate();

        try {
            return $template->renderTemplate($filename, $data, $return);
        } catch (\Exception $exception) {
            if (!empty($this->log))
            {
                $this->log->error("Failed to render template " . $filename, $exception);
            }
            return '';
        }
    }
protected function load ( $ filename , $ data = array ( ) , $ return = false ) { $ template = $ this -> createSubTemplate ( ) ; try { return $ template -> renderTemplate ( $ filename , $ data , $ return ) ; } catch ( \ Exception $ exception ) { if ( ! empty ( $ this -> log ) ) { $ this -> log -> error ( "Failed to render template " . $ filename , $ exception ) ; } return '' ; } }
Build a template

@param string $filename
@param mixed $data
@param boolean $return
@return string
Build a template