private function initSmarty()
{
$tpl = new \Smarty();
// inits smarty configuration settings
$tpl->left_delimiter = '{{';
$tpl->right_delimiter = '}}';
$tpl->force_compile = true;
$tpl->config_dir = APPLICATION_PATH . '/../include/smarty/configs';
$tpl->template_dir = APPLICATION_PATH . '/../themes/system_templates';
$tpl->compile_dir = APPLICATION_PATH . '/../cache';
$tpl->auto_literal = false;
return $tpl;
}