Ejemplo n.º 1
0
 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();
 }
Ejemplo n.º 2
0
 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();
 }