Tag Archives: filed

Symfony 1.4 validate form fields depending on the other fields value

If you are working with Symfony, you might need from time to time validate a field, depending on the other filed value. There are a few ways to accomplish this. One quick method is to override the bind function: <?php public function bind(array $taintedValues = null, array $taintedFiles = null) { if($taintedValues["method"] == ‘firstAddress’) { read more »

Share and Enjoy

  • Facebook
  • Twitter
  • Delicious
  • LinkedIn
  • StumbleUpon
  • Add to favorites
  • Email
  • RSS