2012-08-05 103 views
1

我旧版本的smarty是2.6.20现在我需要升级旧版本到新版本3.1.1。但在smarty(3.1.1)的新版本中,我看到了更改libs文件目录。我可以切换到新版本而无需更改我的PHP代码?如何 ?升级版本smarty模板引擎

老Smarty的目录:库/

/internals/ 
/plugins/ 
Config_File.class.php 
debug.tpl 
Smarty.class.php 
Smarty_Compiler.class.php 

新的Smarty目录:库/

/plugins/ 
/sysplugins/ 
Smarty.class.php 
SmartyBC.class.php 
debug.tpl 

回答

1

这是相当不可能的升级可以不碰你的代码/模板进行。对于事情的清单看出来的,阅读下面的升级说明:

+0

该链接已更改为: * [Smarty的2 BC注意事项](https://github.com/smarty-php/smarty/blob/master/SMARTY_2_BC_NOTES.txt) * [Smarty 3 BC Notes](https://github.com/smarty-php/smarty/blob/master /SMARTY_3.0_BC_NOTES.txt) * [Smarty 3.1 Notes](https://github.com/smarty-php/smarty/blob/master/SMARTY_3.1_NOTES.txt) – jackbravo 2016-07-12 17:40:40