Development

#3973 (setNameFormat() should report on illegal names)

You must first sign up to be able to contribute.

Ticket #3973 (closed documentation: fixed)

Opened 4 months ago

Last modified 4 months ago

setNameFormat() should report on illegal names

Reported by: lunarmys Assigned to: fabien
Priority: minor Milestone: 1.1.1
Component: widget Version: 1.1.0
Keywords: widgetschema Cc:
Qualification: Unreviewed

Description

$this->widgetSchema->setNameFormat("action[%s]") will result in an error when submitting the form

I think it's because the dispatcher uses the parameter "action" to forward to that page. Would be nice if setNameFormat() could throw an error when reserved words are used

Change History

07/12/08 02:39:32 changed by Carl.Vondrick

  • type changed from defect to documentation.

Hmmm... this will couple the form framework to symfony. Should we just mention it in the documentation?

07/15/08 01:40:19 changed by Carl.Vondrick

  • status changed from new to closed.
  • resolution set to fixed.

(In [10289]) 1.2: added warning to sfWidgetFormSchema->setNameFormat() about illegal names that will confuse symfony (closes #3973)

07/15/08 01:46:04 changed by Carl.Vondrick

  • milestone set to 1.1.1.