Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

twig concat string

{{ '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}" }}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #twig #concat #string
ADD COMMENT
Topic
Name
9+3 =