diff options
author | Kevin Chabowski <kevin@kch42.de> | 2011-08-21 13:50:25 +0200 |
---|---|---|
committer | Kevin Chabowski <kevin@kch42.de> | 2011-08-21 13:50:25 +0200 |
commit | 958e9e467736690a46ae9129db43f8428fc3f04c (patch) | |
tree | 26794914aff9aa9ecf118f39d94a578575ccbaf1 /ratatoeskr/sys | |
parent | ccf2fe853c2cfe629d92833df0e7abe6be4a7df3 (diff) | |
download | ratatoeskr-cms-958e9e467736690a46ae9129db43f8428fc3f04c.tar.gz ratatoeskr-cms-958e9e467736690a46ae9129db43f8428fc3f04c.tar.bz2 ratatoeskr-cms-958e9e467736690a46ae9129db43f8428fc3f04c.zip |
Added libs directory and configured Smarty.
Diffstat (limited to 'ratatoeskr/sys')
-rw-r--r-- | ratatoeskr/sys/load_smarty.php | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/ratatoeskr/sys/load_smarty.php b/ratatoeskr/sys/load_smarty.php new file mode 100644 index 0000000..574f3c9 --- /dev/null +++ b/ratatoeskr/sys/load_smarty.php @@ -0,0 +1,28 @@ +<?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"); +} + +?> |