Bonjour
voici mon code:
dans mon fichier routing.yml je dois passer la variable $sf_params->get('mot_cle'):
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5 <form method="POST" action="<?php echo url_for('module/action') ?>"> <br /><input type="text" name="mot_cle1" value="<?php echo $sf_params->get('mot_cle'); ?>" size="17"/><input type="submit" value="Chercher" /> </form>
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5 prenom_traduit: url: /prenom/:$sf_params->get('mot_cle')/show-:sf_culture.html requirements: { sf_culture: (?:fr|en) } param: { module: xxx, action: xxx, sf_culture:fr}
Partager