Example #1
0
<?php

/**
*配置smarty模板
*/
require_once LIBS_PATH . '/Smarty-3.1.17/Smarty.class.php';
$smarty = new Smarty();
$smarty->template_dir = ROOT . '/templates/';
$smarty->compile_dir = ROOT . '/templates_c/';
$smarty->cache_dir = ROOT . '/cache/';
$smarty->setForce_compile(true);