Smutty

MVC Framework

View Code: Smutty_Template_Smutty

Browse: All · Classes · Plugins

1
<?php
2
3
/**
4
* this class is for templates used by the smutty
5
* framework itself.
6
*
7
*/
8
10
11
/**
12
* constructor
13
*
14
* @return nothing
15
*
16
*/
17
18
function __construct() {
19
parent::__construct();
20
$this->template_dir = 'library/smarty/templates';
21
$this->compile_dir = 'library/smarty/cache/smutty';
22
// need to keep a seperate compile dir to avoid
23
// smarty wierdness i couldn't be bothered to look into.
24
if ( !file_exists($this->compile_dir) )
25
mkdir( $this->compile_dir );
26
}
27
28
}
29
30
?>

The code shown here is the code that is currently running this site. If you want to view the latest SVN version of the code then go to the Subversion repository.