I have coding from someone that make a alerts bootstrap use twig not php, and i would change it to php coding, this is twig coding:
{% for alert in [ 'info', 'success', 'warning', 'error'] %}
{% if app.session.hasFlash(alert) %}
<div class="alert alert-{{ alert }}">
<button class="close" data-dismiss="alert">×</button>
{{ app.session.flash(alert) }}
</div>
{% endif %}
{% endfor %}
{% block content %}
{% endblock %}
can you help me for change that twig code to php code?
thank you 🙂
Simple…