22 lines
496 B
PHP
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");
|
||
|
}
|
||
|
}
|
||
|
|
||
|
?>
|