original_string: 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 '';
          }
      }
code: 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 '';
          }
      }
code_tokens: 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 '' ; } }
docstring: Build a template
  
  @param string $filename
  @param mixed $data
  @param boolean $return
  @return string
docstring_tokens: Build a template