Connecting the dots…

Thoughts on Web Development, Scalability and Application Architecture

Tag: validation

Using sfValidatorCallback

Writing this post down as a note to self about using sfValidatorCallback. Step 1: add the sfValidatorCallback to the widget public function configure() { $this->widgetSchema['my_field'] = new sfWidgetFormTextArea(array(‘required’ => false)); // add the validator $this->validatorSchema['my_field'] = new sfValidatorCallback( array(‘callback’ => array( array($this, ‘my_valdiation_function’) // if you write the function in the validator itself // array($this->getObject(), [...]

sfDoctrineGuardPlugin: Signup, Validation and Profile

I am a big fan of using plugins in symfony especially that are well written and save me a bunch of time implementing some bog standard functionality. SfDoctrineGuardPlugin is an example of one such plugin but due the generic nature of the signup process there is a lot left to be implemented even after using [...]