开发者

remove 'new' action from backend application module, symfony

开发者 https://www.devze.com 2023-02-27 00:50 出处:网络
I have created a module in back开发者_开发百科end application. need to remove the \'new\' action, but unfortunately i don\'t know how to remove this from generator.yml :(You can specifiy the actions a

I have created a module in back开发者_开发百科end application. need to remove the 'new' action, but unfortunately i don't know how to remove this from generator.yml :(


You can specifiy the actions available on the various views, in this case the list view. I have removed the options from the generator config that are not applicable.

  # generator.yml
  generator:
    class: sfDoctrineGenerator
    param:
      config:
        list:
          actions:
            {}

By setting an empty array on the list:actions setting you can remove the link to the new action.

See 'Lists' section at http://www.symfony-project.org/reference/1_4/en/06-Admin-Generator#chapter_06_actions

0

精彩评论

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