Paramètres de l'url / Url Parameters

Param 1:
Param 2:

Explaination

The entry for url /english/:member([-a-z0-9]+)/:action(show|create)/? allow us to display this page from /english/john-doe/show/, /english/bob/create, etc. This page share the same view which the entry url /:member([-a-z0-9]+)/:action(voir|creer)/? that normally done the same page result.

However you can see thanks to a <? if (...) { ?>...<? } else { ?>...<? } ?> we can display different contents depending of variable.

So it's possible to display french or international text depending of that. The content is write in hard into file because no variation file is defined for this route.

Finally, this page it is not --generate because output is setted to false.

Explication

L'entrée avec lurl /:member([-a-z0-9]+)/:action(voir|creer)/? nous permet d'afficher cette page depuis /john-doe/voir/, /bob/creer, etc. Ce chemin partage la même view que l'entrée avec l'url /english/:member([-a-z0-9]+)/:action(show|create)/? ce qui conduira normalement au même résultat de page.

Vous pourrez cependant constater que grace à un <? if (...) { ?>...<? } else { ?>...<? } ?> nous pouvons afficher des contenus différents en fonction des variables.

Ainsi nous pouvons afficher du texte français ou du texte international. Le texte est écrit en dure dans la page car il n'y a pas de variation de définie pour cette route.

Enfin cette page ne sera pas --generate car le output est à false.