开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜