bcast-bridge/web/include/MySmarty.class.php
2006-12-11 21:36:44 +01:00

22 lines
496 B
PHP

<?php
require_once('smarty/libs/Smarty.class.php');
class MySmarty extends Smarty {
function MySmarty() {
$this->template_dir = BASEDIR."smarty/templates/";
$this->compile_dir = BASEDIR."smarty/templates_c/";
$this->config_dir = BASEDIR."smarty/configs/";
$this->cache_dir = BASEDIR."smarty/cache/";
return $this;
}
function displaySite($title, $template) {
$this->assign("title", $title);
$this->assign("templatename", $template);
$this->display("siteframe.tpl");
}
}
?>