Search
Categories
- Getting Things Done (RSS) (3)
- SEO (RSS) (1)
- Web Development (RSS) (86)
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(
[...]
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 [...]
Recent Comments