Wednesday, December 28, 2016
Tuesday, December 20, 2016
Monday, December 19, 2016
Sunday, December 18, 2016
Siapa yg menanggung kerugian jika bisnis rugi? Apakah pemodal atau investo?
https://youtu.be/ONdiaPbFoyA
Labels:
Agama Islam,
bisnis
Friday, December 16, 2016
Setting element of array from Twig & Accessing array values using array key from Twig
{% set items_0 = { 'apple': 'fruit', 'orange': 'fruit1', 'peugeot': 'nown' } %}
{% set arr = {} %}
{% for key,value in items_0 %}
{# {{ key ~ ":" ~ value }} #}
{% set arr = arr|merge({ (key) : value }) %}
{{ arr[key] }}
{% endfor %}
=============
{% for key,value in arr %}
{{ key ~ ":" ~ value }}
{% endfor %}
===============
http://twig.sensiolabs.org/doc/filters/merge.html
{% set arr = {} %}
{% for key,value in items_0 %}
{# {{ key ~ ":" ~ value }} #}
{% set arr = arr|merge({ (key) : value }) %}
{{ arr[key] }}
{% endfor %}
=============
{% for key,value in arr %}
{{ key ~ ":" ~ value }}
{% endfor %}
===============
http://twig.sensiolabs.org/doc/filters/merge.html
Labels:
twig
Text tools
http://tools.buzzstream.com/link-building-extract-urls
Paste in html containing links and this tool will isolate and seperate each url into a CSV file
Hint: If you are using firefox, highlight the desired links then right click and choose "View Selection Source". Then copy the html and paste below.
http://textmechanic.com/
Labels:
online tools
Tuesday, December 13, 2016
Monday, December 5, 2016
Sunday, December 4, 2016
Is there a way to replace a string with html tags in TWIG (Symfony2)?
http://stackoverflow.com/questions/23239173/is-there-a-way-to-replace-a-string-with-html-tags-in-twig-symfony2
I have an html saved in my database with a special tag string like [special_tag] and I want to display that html to my twig template at the same time replace the [special_tag] with any html elements.
Is this possible?
| |||
add a comment
|
Yes, you could use Twig's
replace filter:
| |||
Subscribe to:
Posts (Atom)
raw
:{{ var_html | replace(...) | raw }}
– Crozin Apr 23 '14 at 9:18