Search code examples
symfony1

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


How can I add custom action in generator.yml that point 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.


Solution

  • 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.