function __construct($Conf) { parent::__construct(); $this->templateDir = $Conf->get('template.dir'); $this->cacheDir = $Conf->get('template.cache'); $this->leftDelimiter = '{{'; $this->rightDelimiter = '}}'; $this->registerCompilerHandler('snippet', new NyaaControllerTplCompilerSnippet()); parent::__construct(); }
function __construct($fw) { $this->fw = $fw; $this->templateDir = $fw->Conf->templateDir; $this->cacheDir = $fw->Conf->templateCache; $this->leftDelimiter = '{{'; $this->rightDelimiter = '}}'; $this->registerCompilerHandler('snippet', new NyaaFWTemplaterSnippet()); parent::__construct(); }