<?php class tplCompiler { //(...) var $tpl; function tplCompiler() { //(...) $this -> reg_exp['if'] = '/{ifs((.+))}(.+){endif}/'; //(...) } function Compile() { //(...) $this -> tpl = preg_replace( $this -> reg_exp[\"if\"], '<?php if(0) { ?>1<?php } ?>', $this -> tpl ); //(...) } } ?>
Dlaczeog, przy zapisie:
{if (isset($_GET['url'])} {endif}
Nie zmienia tego na dopowiednią instrukję tylko wyświetla tak jak jest
