Generator.yml - problem with fields type: plain
What's the problem here?
generator:
  class: sfDoctrineGenerator
  param:
    model_class开发者_StackOverflow:           Builds
    theme:                 admin
    non_verbose_templates: true
    with_show:             false
    singular:              ~
    plural:                ~
    route_prefix:          builds
    with_doctrine_route:   true
    actions_base_class:    sfActions
    config:
      fields:
        locality: {type: plain}
Field 'locality' is not a plain but it's show as an input tag! Why?? What's wrong?
Unfortunately symfony does not have a readonly form widget out of the box. If you want such functionality, create a new form widget class that only renders a label and no input tag.
 加载中,请稍侯......
 加载中,请稍侯......
      
精彩评论