function __construct($fileName = '', $defaultHtml = '') { if (!self::$isLibLoaded) { self::$isLibLoaded = true; require_once GLZ_LIBS_DIR . '/Twig/Autoloader.php'; Twig_Autoloader::register(); } parent::__construct($fileName, $defaultHtml); $loader = new Twig_Loader_Filesystem($this->filePath); $this->_templClass = new Twig_Environment($loader, array('cache' => org_glizy_Paths::getRealPath('CACHE'), 'auto_reload' => true, 'debug' => true)); $this->_templClass->addExtension(new Twig_Extension_Debug()); }
function __construct($fileName = '', $defaultHtml = '') { if (!self::$isLibLoaded) { self::$isLibLoaded = true; set_include_path(get_include_path() . PATH_SEPARATOR . GLZ_LIBS_DIR . 'PHPTAL5/'); set_include_path(get_include_path() . PATH_SEPARATOR . GLZ_LIBS_DIR . 'PHPTAL5/PHPTAL/'); require_once GLZ_LIBS_DIR . 'PHPTAL5/PHPTAL.php'; } parent::__construct($fileName, $defaultHtml); $this->_templClass = new PHPTAL(); $this->_templClass->setPhpCodeDestination(org_glizy_Paths::getRealPath('CACHE'))->setTemplate($this->filePath . $this->fileName)->setForceReparse(false)->setEncoding(__Config::get('CHARSET')); }
function __construct($fileName = '', $defaultHtml = '') { $this->_values = array(); parent::__construct($fileName, $defaultHtml); }