Development

Changeset 10289

You must first sign up to be able to contribute.

Changeset 10289

Show
Ignore:
Timestamp:
07/15/08 01:40:19 (2 months ago)
Author:
Carl.Vondrick
Message:

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

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/1.2/lib/widget/sfWidgetFormSchema.class.php

    r9264 r10289  
    174174  /** 
    175175   * Sets the format string for the name HTML attribute. 
     176   * 
     177   * If you are using the form framework with symfony, do not use a reserved word in the 
     178   * name format.  If you do, symfony may act in an unexpected manner. 
     179   * 
     180   * For symfony 1.1 and 1.2, the following words are reserved and must NOT be used as 
     181   * the name format: 
     182   * 
     183   *  * module    (example: module[%s]) 
     184   *  * action    (example: action[%s]) 
     185   * 
     186   * However, you CAN use other variations, such as actions[%s] (note the s). 
    176187   * 
    177188   * @param string $format  The format string (must contain a %s for the name placeholder)