Share Button

Read the English version

Il y a quelques temps, j’ai rencontré un “problème” en utilisant des variables numériques comme clés dans un tableau Twig.
C’est un problème très spécifique qui est dû à l’utilisation de fonction php array_merge. La documentation spécifie que “les clés numériques des tableaux d’entrées seront renumérotées”. Mon but n’est donc pas d’expliquer les raisons de ce comportement, mais plutôt de proposer une solution.
Continue reading

Share Button

Share Button

Lire la version française

Today, I encountered an “issue” when using numeric variable as key in a Twig array.
This is a very specific problem which is due to the use of the array_merge php function. The documentation tells that “values in the input array with numeric keys will be renumbered”. So my goal here is not to explain the reasons of this behaviour but rather explaining my problem, and propose a solution.
Continue reading

Share Button

Share Button

Lire la version française

This article talks about the implementation of a search with Elasticsearch on a Symfony project.

Install Elasticsearch

Continue reading

Share Button

Share Button

Lire la version française

This article is the second one about Elasticsearch.
Its goal is not to present what is Elasticsearch, you can read more about it on other blogs, like this one (in French). But it will allow you to get to the heart of the matter, and to understand the following articles.

Continue reading

Share Button

Share Button

Lire la version française

We are working at the moment on a big internationalized project, and we have consequently many translations in our application. These translations are dispatched in many bundles (7 for now) and are used throughout the application. At the begining of the development, we hadn’t any specific organisation for the translations and we put the translation in a random bundle (the one on which we were working, most of the time).

Continue reading

Share Button