开发者

Generator.yml - problem with fields type: plain

开发者 https://www.devze.com 2023-01-26 00:16 出处:网络
What\'s the problem here? generator: class: sfDoctrineGenerator param: model_class开发者_StackOverflow:Builds

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

精彩评论

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