在thinkphp框架中使用Thinkph的模板引擎,css,js等都没问题,配置为smarty模板引擎后没效果,如图

smarty模板中引用常量没效果

代码为,$Smarty的s是大写,此时页面不能引入常量,改为小写后正常了。

 <link href="{$Smarty.const.ADMIN_CSS}/User_Login.css" type="text/css" rel="stylesheet" />                
smarty模板中引用常量没效果

相关文章:

  • 2021-08-04
  • 2021-06-28
  • 2021-05-29
  • 2021-11-07
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-09-13
  • 2022-12-23
  • 2021-09-11
  • 2021-06-28
  • 2021-12-10
  • 2022-01-19
相关资源
相似解决方案