在Twig文件上编辑变量的内容

时间:2019-01-02 17:48:29

标签: php twig

我是PHP新手。我在树枝文件上,如果这样做 {{dump(content)}}-我明白了:-

{#1937 ▼
  -id: "387"
  -url: "why-we-are-cool"
  -pagetitle: "Why Book With us?"
  -hidden: false
  -bodytitle: "Why book with us?"
  -desc: "plus a 24/7 support team on the end of the phone – t ▶"
  -keywords: "why us"
  -body: """
    <p>Up to 50% off Smith hotels all year round</p>\r\n
    <a class="button button-primary" href="https://www.google.co.uk">Join the club</a> <a class="button button-primary" href="https://www.google.co.uk ▶
    """
}

现在,我希望能够从同一树枝文件中更改/添加上述a标签上的属性。我怎么做?非常感谢你的帮助。干杯!

0 个答案:

没有答案