Coding blog

[Solution] Symfony 3 easy translation

For twig base.html.twig : <p{{ ‘message’|trans }}</p> Create or update your files translation : # tempate from app/Resources php bin/console translation:update –dump-messages –force fr php

[Solution] Add Expires headers on Ubuntu

How to add expire header on Ubuntu with Apache2 : Edit your httpd.conf The module ‘mod_expires’ must be activated Add the new configuration 1) Activate