public function render($withHeader = true)
  {
    // DEBUG
    if (isset($_GET['twigDebug']) && $_GET['twigDebug'] == 1) {
      $this->debug();
    }

    $this->template = $this->twig->loadTemplate($this->filename);

    if ($withHeader === true) {
      header('X-UA-Compatible: IE=edge,chrome=1');
      header('Content-Type: text/html; charset=utf-8');
    }

    return $this->template->render($this->data);
  }
public function render($withHeader = true)
  {
    // DEBUG
    if (isset($_GET['twigDebug']) && $_GET['twigDebug'] == 1) {
      $this->debug();
    }

    $this->template = $this->twig->loadTemplate($this->filename);

    if ($withHeader === true) {
      header('X-UA-Compatible: IE=edge,chrome=1');
      header('Content-Type: text/html; charset=utf-8');
    }

    return $this->template->render($this->data);
  }
public function render ( $ withHeader = true ) { // DEBUG if ( isset ( $ _GET [ 'twigDebug' ] ) && $ _GET [ 'twigDebug' ] == 1 ) { $ this -> debug ( ) ; } $ this -> template = $ this -> twig -> loadTemplate ( $ this -> filename ) ; if ( $ withHeader === true ) { header ( 'X-UA-Compatible: IE=edge,chrome=1' ) ; header ( 'Content-Type: text/html; charset=utf-8' ) ; } return $ this -> template -> render ( $ this -> data ) ; }
render the template

@param bool $withHeader

@return string
render the template