smarty-2014-02-28

使用smarty,在tpl文件中如何使用相对路径调用css&javascript文件,实际上这个相对路径的参照物就是以调用该tpl文件的php文件来写。

假如,我在index.php这个文件中调用template/index.tpl,那么index.tpl里面使用的css&javascript文件的相对路径就是index.php相对

于这些文件的路径。

原文地址:https://www.cnblogs.com/shuman/p/3572938.html