Weird parser errors:
Notice: Undefined property: template::$param in
C:\xampp\htdocs\app\includes\classes\class.template.php on line 37
Warning: array_keys() expects parameter 1 to be array, null given in
C:\xampp\htdocs\app\includes\classes\class.template.php on line 37
Notice: Undefined property: template::$param in
C:\xampp\htdocs\app\includes\classes\class.template.php on line 37
Warning: array_values() expects parameter 1 to be array, null given in
C:\xampp\htdocs\app\includes\classes\class.template.php on line 37
Code:
public function newParam($trans, $value) {
$this->param['{' . $trans . '}'] = $value;
}
public function getParam($content) {
$content = str_replace(
array_keys($this->param),
array_values($this->param),
$content
);
return $content;
}
Please note that this isn't any existing parser.