Meta refresh in Symfony – use view.yml

by Thomas Beutel

The easiest way I’ve found to add meta refresh to a specific action in Symfony is to use the view.yml file. Note that I use http_metas, not regular metas.

    refresh: 300

which results in adding the following, as you would expect:

<meta http-equiv="Refresh" content="300" />