【问题标题】:Concatenate url in smarty for a given link with string在 smarty 中将给定链接的 url 与字符串连接起来
【发布时间】:2017-03-16 15:48:37
【问题描述】:

当我在 smarty 中将给定链接的 URL 与字符串(例如 ' /code/1113321 ')连接时,链接的 href 是 ' basic_url/code/1113321 ',但是当点击链接时,它会导致 ' basic_url%2Fcode%2F1113321 '。如何将% 符号替换为/

【问题讨论】:

标签: php html css smarty shopware


【解决方案1】:

也许你可以帮助这样的建设:

//index - controller name
<a href="{url controller=index code=1113321}">link</a>

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2014-08-30
    • 1970-01-01
    • 1970-01-01
    • 2013-04-13
    • 2020-07-31
    • 1970-01-01
    相关资源
    最近更新 更多