📜  twig concat string - PHP 代码示例

📅  最后修改于: 2022-03-11 14:53:50.402000             🧑  作者: Mango

代码示例1
{{ 'http://' ~ app.request.host }}

// To add a filter - like 'trans' - in the same tag use
{{ ('http://' ~ app.request.host) | trans }}

// You can also use string interpolation, this does require double quoted strings:
{{ "http://#{app.request.host}" }}