Connecting the dots...
Thoughts on Web Development, Scalability and Application Architecture
  • Home
  • About Rajat Pandit
  • Contact
Browse: Home / forms

forms

Using sfValidatorCallback

By rp on January 1, 2010

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(
[...]

Posted in Web Development | Tagged forms, sfCallbackValidator, sfForm, Symfony, validation, validator | Leave a response

Search

Sponsored Links

Dreamhost Rewards

Symfony Experts

Categories

  • Getting Things Done (RSS) (3)
  • SEO (RSS) (1)
  • Web Development (RSS) (86)

Recent Comments

  • zakaria on Skype audio playback and capture problem on ubuntu 8.10
  • Allen on sfDoctrineGuardPlugin: Signup, Validation and Profile
  • Susan on Creating utf-8 tables in symfony 1.4 /doctrine 1.2
  • Tynisha Cooper on FOWA 2008
  • Affordable Web Development on Making footer stick to the bottom of the page

Tags

accessiblity Add new tag apache 2 array bot build process Clean CSS dependencies development doctrine email gmail googl hack irc Javascript JeOS leopard linux mac macfusion mail namespaced OSX pear perl php propel protocol quit now search SEO simplexml ssh sshfs svn Symfony synchronization Ubuntu upgrade validation variants Yahoo! yahoo search

Copyright © 2010 Connecting the dots....