file = $file; } function set($name, $value) { $this->vars[$name] = $value; } function out() { extract($this->vars); ob_start(); include($this->file); $res = ob_get_contents(); ob_end_clean(); return $res; } } ?>