开发者

Symfony : Need custom action in generator.yml pointing to different module

How can I add custom action in generator.yml that p开发者_运维知识库oint to an action in different module than current. In other words, I am expecting something like below.

  // snippet from apps/backend/modules/users/config/generator.yml
  edit:
    title:         User details
    display:       [city, state, country, zip, phone, sms, email]
    actions:
      _save: { label: Save }
      _listProfile:     { label: List Profiles, action: listProfiles, module: profile }

Note that listProfiles action is part of profile module where the generator.yml belong to users module. The above does not work for me.


I don't think that is possible. But you should be able to create a custom action and forward or redirect to the other action inside this action.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜