1
0
Fork 0
smarty/classes/class.smarty.backend.php
2019-11-04 17:10:22 +01:00

47 Zeilen
Kein EOL
1,4 KiB
PHP

<?php
/**
* This file contains the backend class for smarty wrapper plugin.
*
* @package Plugin
* @subpackage SmartyWrapper
* @version $Rev: 128 $
* @since 2.0.2
* @author Ortwin Pinke <o.pinke@conlite.org>
* @copyright (c) 2018, conlite.org
* @license http://www.gnu.de/documents/gpl.en.html GPL v3 (english version)
* @license http://www.gnu.de/documents/gpl.de.html GPL v3 (deutsche Version)
* @link http://www.conlite.org ConLite.org
*
* $Id: class.smarty.backend.php 128 2019-07-03 11:58:28Z oldperl $
*/
/**
* @package Plugin
* @subpackage SmartyWrapper
* @author Andreas Dieter
* @copyright four for business AG <www.4fb.de>
*/
defined('CON_FRAMEWORK') || die('Illegal call: Missing framework initialization - request aborted.');
/**
* Wrapper class for Integration of smarty.
*
* @package Plugin
* @subpackage SmartyWrapper
*/
class cSmartyBackend extends cSmartyFrontend {
public function __construct(&$aCfg, &$aClientCfg, $bSanityCheck = false) {
parent::__construct($aCfg, $aClientCfg, false);
parent::$aDefaultPaths = array(
'template_dir' => $aCfg['path']['contenido'] . 'plugins/smarty_templates/',
'cache_dir' => $aCfg['path']['conlite_cache'],
'compile_dir' => $aCfg['path']['conlite_cache'] . 'templates_c/'
);
parent::$bSmartyInstanciated = true;
$this->resetPaths();
}
}