コード例 #1
0
ファイル: view_smarty.php プロジェクト: 2626suke/curryfw
 /**
  * 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');
 }