blob: 43df9574af4e294981f0c1577b7dcc633faa6764 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
<?php
/*
* File: ratatoeskr/sys/load_smarty.php
*
* Create the global Smarty instance.
*
* License:
* This file is part of Ratatöskr.
* Ratatöskr is licensed unter the MIT / X11 License.
* See "ratatoeskr/licenses/ratatoeskr" for more information.
*/
require_once(dirname(__FILE__) . "/../libs/smarty/Smarty.class.php");
if(!isset($smarty))
{
/*
* Variable: $smarty
* Global smarty instance.
*/
$smarty = new Smarty();
$smarty->setTemplateDir(dirname(__FILE__) . "/../templates/");
$smarty->setCompileDir(dirname(__FILE__) . "/../tmp/smartytemplates_c");
$smarty->setCacheDir(dirname(__FILE__) . "/../tmp/smarty/cache");
$smarty->setConfigDir(dirname(__FILE__) . "/../smarty_confdir");
$smarty->left_delimiter = "{%";
$smarty->right_delimiter = "%}";
}
?>
|