_variables[$name] = $value; } /** * render a template * * @access public * @param string $template * @throws Exception * @return void */ public function draw($template) { $path = PATH . 'tpl' . DIRECTORY_SEPARATOR . $template . '.php'; if (!file_exists($path)) { throw new Exception('Template ' . $template . ' not found!', 80); } extract($this->_variables); include $path; } }