-
Notifications
You must be signed in to change notification settings - Fork 0
/
jTPL.php
42 lines (36 loc) · 930 Bytes
/
jTPL.php
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
31
32
33
34
35
36
37
38
39
40
41
42
<?php
/**
* Simple config file for jCode Lab
*
*
* Released under the MIT license
*
* @copyright 2012 jCode
* @category config
* @version $Id$
* @author Jason Millward <[email protected]>
* @license http://opensource.org/licenses/MIT
* @package jCode Lab
*/
require SMARTY_DIR . '/Smarty.class.php';
/**
*
*/
class jTPL extends Smarty
{
/**
* [__construct description]
* @param [type] $templateDir [description]
*/
function __construct( $templateDir )
{
parent::__construct();
$this->template_dir = $templateDir;
$this->compile_dir = SMARTY_WRITE . '/templates_c';
$this->config_dir = SMARTY_WRITE . '/configs';
$this->cache_dir = SMARTY_WRITE . '/cache';
$this->assign('url', BASEURL);
$this->assign('dir', BASEDIR);
$this->assign('brand', BRAND);
}
}