first commit
This commit is contained in:
19
classes/TestProjektSmarty.class.php
Executable file
19
classes/TestProjektSmarty.class.php
Executable file
@ -0,0 +1,19 @@
|
||||
<?php
|
||||
date_default_timezone_set("Europe/Berlin");
|
||||
|
||||
set_include_path( get_include_path().PATH_SEPARATOR.'./lib');
|
||||
require_once('lib/smarty/libs/Smarty.class.php');
|
||||
if(!defined('REQUIRED_SMARTY_DIR')) define('REQUIRED_SMARTY_DIR','./');
|
||||
|
||||
class SmartyAdmin extends Smarty{
|
||||
|
||||
function __construct(){
|
||||
$this->Smarty();
|
||||
|
||||
$this->template_dir = REQUIRED_SMARTY_DIR.'templates';
|
||||
$this->compile_dir = REQUIRED_SMARTY_DIR.'templates_c';
|
||||
$this->config_dir = REQUIRED_SMARTY_DIR.'config';
|
||||
$this->cache_dir = REQUIRED_SMARTY_DIR.'cache';
|
||||
}
|
||||
}
|
||||
?>
|
18
classes/TestProjektSmarty.class_subdir.php
Executable file
18
classes/TestProjektSmarty.class_subdir.php
Executable file
@ -0,0 +1,18 @@
|
||||
<?php
|
||||
date_default_timezone_set("Europe/Berlin");
|
||||
|
||||
set_include_path( get_include_path().PATH_SEPARATOR.'./lib');
|
||||
require_once('../lib/smarty/libs/Smarty.class.php');
|
||||
if(!defined('REQUIRED_SMARTY_DIR')) define('REQUIRED_SMARTY_DIR','./');
|
||||
|
||||
class SmartyAdmin extends Smarty{
|
||||
|
||||
public function __construct(){
|
||||
parent::__construct(); // this must be called
|
||||
$this->template_dir = REQUIRED_SMARTY_DIR.'../templates';
|
||||
$this->compile_dir = REQUIRED_SMARTY_DIR.'../templates_c';
|
||||
$this->config_dir = REQUIRED_SMARTY_DIR.'../config';
|
||||
$this->cache_dir = REQUIRED_SMARTY_DIR.'../cache';
|
||||
}
|
||||
}
|
||||
?>
|
Reference in New Issue
Block a user