KingFish
KingFish

Reputation: 9153

symfony 1.4 validate not firing in action.class.php

I'm sure I'm doing something wrong, but I'm trying to implement validators in my app but the validateXXXX doesn't seem to be firing, nor the module/validate/XXXX.yml isn't having an affect.

modules/Register/actions.class.php

Here are some files:

class RegisterActions extends sfActions
{
  public function validateIndex()
  {
      error_log("********** in here");
      print " ************ ";
      return false;
  }


  public function executeIndex(sfWebRequest $request)
  {
       .... do something
  }
}

....

modules/Register/validate/index.yml fields: password: required: .......

Thanks

Upvotes: 0

Views: 302

Answers (1)

Vlad Jula-Nedelcu
Vlad Jula-Nedelcu

Reputation: 1696

Are you trying to use Symfony v1.0 validators in v1.4? Things have changed a lot (regarding forms) since v1.0

Upvotes: 1

Related Questions