die Funktion
PHP-Code:
protected function replaceFunctions()
** *{
** * * *// Includes ersetzen ( {include file="..."} )
** * * *$this->template = preg_replace_callback("/{include file="(.*).(.*)"}/",
** * * * * * * * * *function ($treffer) {
** * * * * * * * * * * *$aufruf = $this->templateDir.''.$treffer[1].'.'.$treffer[2];
** * * * * * * * * * * *return file_get_contents($aufruf);
** * * * * * * * * *}, $this->template);
** * * *// Kommentare löschen
** * * *#$this->template = preg_replace("/".$this->leftDelimiterC."(.*)".$this->rightDelimiterC."/isUe", "", $this->template);
** * * *return *true;
** *}
macht was sie soll. Ob diese von der Syntax richtig ist bin ich mir jetzt nicht 100% sicher. Die Function loop läuft jedoch nicht und alle Versuche diese mit einen callback auszustatten schlagen fehl.