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
Are you trying to use Symfony v1.0 validators in v1.4? Things have changed a lot (regarding forms) since v1.0