{pc:content action="lists" cat}

如上代码,模板解析时,总是把where="typeid='$t'"typeid='$t' 解析成字符串,不会解析$t变量

 

解决方法:

{php $where = "typeid=$t"}
{pc:content action="lists" cat}

用字符串的方式传递where条件

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-09-03
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-02-26
  • 2021-12-25
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案