Passer une variable GET dans une route
Bonjour
voici mon code:
Code:
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> |
dans mon fichier routing.yml je dois passer la variable $sf_params->get('mot_cle'):
Code:
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} |