server/onyx/modules/templates/main.php
2013-10-09 15:40:23 +02:00

29 lines
649 B
PHP

<?php
if(!defined('ONYX')) exit;
define('SMARTY_DIR',ONYX.'modules/templates/smarty/');
require_once(SMARTY_DIR."Smarty.class.php");
define('_TEMPLATE_DIR',ONYX.'tpl/'.$OPT['tpl'].'/');
define('_TEMPLATE_COMPILE',ONYX.$OPT['compile']);
define('_TEMPLATE_CONFIG',ONYX.$OPT['config']);
define('_TEMPLATE_CACHE',ONYX.$OPT['cache']);
class Template extends Smarty
{
//var $compile_check = false;
//var $force_compile = true;
public function __construct()
{
parent::__construct();
$this->setTemplateDir(_TEMPLATE_DIR);
$this->setCompileDir(_TEMPLATE_COMPILE);
$this->setCacheDir(_TEMPLATE_CACHE);
//SetCONFIGDIR !
}
}
?>