$smarty->setLeftDelimiter('<{'); //左定界符
$smarty->setRightDelimiter('}>'); //右定界符
$smarty->setTemplateDir('tpl'); //模板地址
$smarty->setCompileDir('comp'); //编译文件
$smarty->setCacheDir('cache'); //缓存地址
$smarty->setCaching(Smarty::CACHING_LIFETIME_CURRENT);
$smarty->setCacheLifetime(300);
smarty-3.1.30
$smarty->setRightDelimiter('}>'); //右定界符
$smarty->setTemplateDir('tpl'); //模板地址
$smarty->setCompileDir('comp'); //编译文件
$smarty->setCacheDir('cache'); //缓存地址
$smarty->setCaching(Smarty::CACHING_LIFETIME_CURRENT);
$smarty->setCacheLifetime(300);
smarty-3.1.30
2017-02-22
老师,感觉这样的课程目录有点混乱呀,前面明白了MVC过后 新手就习惯性的把smarty往MVC源代码里去套 结果发现很多地方和前面的代码有冲突(思路冲突)
2017-02-20