Пример #1
0
 /**
  * Execute initial process,
  *
  * @return void
  */
 public function initialize()
 {
     parent::initialize();
     $this->_smarty = new Smarty();
     $this->_smarty->error_reporting = E_ALL & ~E_NOTICE;
     NameManager::setTemplateExtension('tpl');
     $root = PathManager::getViewDirectory();
     $this->setCompileDirectory($root . '/compile');
     $this->setCacheDirectory($root . '/cache');
 }