function execute() { $this->tmpl); }
Poniżej zamieszczam pełną klasę:
<?php class Template { var $tmpl; var $dane; function Template ($name) { } function add($name, $value = '') { $this->dane[$name] = $value; } } function execute() { $this->tmpl); } } ?>
Skrypt pochodzi ze strony: http://www.programuj.com/artykuly/www/template.php