/**
* 构造方法
*
* @return void
*/
protected function __construct()
{
\Yaf_Loader::import(APP_PATH . 'library/Thirdpart/Smarty/libs/Smarty.class.php');
$this->_smarty = new \Smarty();
$this->_smarty->setTemplateDir('');
$this->_smarty->setCompileDir(TMP_PATH . 'smarty-compile/');
$this->_smarty->setCacheDir(TMP_PATH . 'smarty-cache/');
$this->_smarty->setPluginsDir(APP_PATH . 'library/Smarty/Plugins/');
$this->_smarty->left_delimiter = '<!--{';
$this->_smarty->right_delimiter = '}-->';
$this->_smarty->enableSecurity('Comm\\Smarty_Security_Policy');
}