public function configure() { parent::configure(); $this->widgetSchema['gmap'] = new myWidgetFormGoogleMap(); $this->validatorSchema['gmap'] = new sfValidatorString(); $this->widgetSchema['fire_at']->setAttribute('class', 'datepicker'); $this->useFields(array('title', 'icon', 'description', 'fire_at', 'place_id', 'gmap')); }
public function configure() { parent::configure(); $this->widgetSchema['title'] = new sfWidgetFormTextarea(); unset($this['id'], $this['geo_lat'], $this['geo_lng'], $this['place_id']); $this->useFields(array('title', 'description', 'fire_at')); $this->disableLocalCSRFProtection(); }