Smarty(); // Configure the directories containing templates, cache, and configuration $this->template_dir = $cwd . '/templates/' . $UDWBaseconf['udwbase']['template'] . '/'; $this->compile_dir = $cwd . '/.cache/templates/' . $UDWBaseconf['udwbase']['template'] . '/'; $this->config_dir = $cwd . '/configs/'; $this->cache_dir = $cwd . '/.cache/'; // Set debugging mode $this->debugging = $UDWBaseconf['debug']; // Template separators $this->left_delimiter = '{'; $this->right_delimiter = '}'; // Disable full caching $this->caching = false; // Name of the site $this->assign('app_name', $UDWBaseconf['udwbase']['name']); } function uDebug($name, $val='') { if (!$val) $val = 'unset'; $this->append($name, $val); } }