【发布时间】:2011-05-29 12:16:10
【问题描述】:
我正在尝试通过这样做在我的 .tpl 中分配一个变量,
{assign var="image" value="images/stores/{$location.storename|regex_replace:"/[' ']/":"-"|lower}.jpg"}
但是我得到了这个错误,
Smarty 错误:[在 stores/view-store.tpl 第 135 行]:语法错误:无效属性名称:'|lower'
我怎样才能停止这个错误,但仍将返回信息的大小写改为小写?
【问题讨论】:
标签: php smarty templating task-parallel-library