blob: 65cb760ef72d6529bced6d002afc35c8f7d084d9 (
plain) (
blame)
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
|
<?php
/**
* @package util
*/
#require_once('boot.php');
#require_once('include/cli_startup.php');
require_once "library/Smarty/libs/Smarty.class.php";
#cli_startup();
$folders = array_merge(array('view/tpl/'),glob('view/theme/*/tpl/*',GLOB_ONLYDIR));
$s = new Smarty();
$s->setTemplateDir($folders);
$s->setCompileDir('view/tpl/smarty3/compiled/');
$s->setConfigDir('view/tpl/smarty3/config/');
$s->setCacheDir('view/tpl/smarty3/cache/');
$s->left_delimiter = "{{";
$s->right_delimiter = "}}";
$s->compileAllTemplates('.tpl',true);
|