/branches/ant-ng/lib/template.php |
---|
25,7 → 25,9 |
} |
public function display($name, $attrs = null) { |
$content = implode('',$this->path.$name); |
$fh = fopen($this->path.$name, "r+"); |
$content = fread($fh, filesize($this->path.$name)); |
fclose($fh); |
foreach ($attrs as $attr) { |
$content = str_replace("{".$attr."}", $this->__get($attr), $content); |
} |