0

Symfony 1.4 で admin ジェネレーターを使用しており、カスタム アクションが必要です。アクション名を指定できる generator.yml で指定object_actionsできますが、別のモジュール名を指定する方法はありますか?

generator.yml

generator:
  class: sfDoctrineGenerator
  param:
    model_class:           MasterIndex
    theme:                 admin
    non_verbose_templates: true
    with_show:             false
    singular:              ~
    plural:                ~
    route_prefix:          master_index
    with_doctrine_route:   true
    actions_base_class:    sfActions

    config:
      actions: ~
      fields:  ~
      list:    
        actions: {}
        display: [=last_name, =first_name, =email, _number_poems, is_contestant, is_admin, is_disabled]
        object_actions: 
          payInvoice: {label: Enter Payment, action: payInvoice}  // how to specify a different module?
          _edit: ~
      filter:  
        display: [last_name, first_name, email, is_admin, is_contestant, is_disabled]
      form:    ~
      edit:    ~
      new:     ~

キーを追加しようとしmodule: paymentましたpayInvoiceが、効果がありません。これは実行可能ですか?

4

1 に答える 1

0

ルーティングファイルに(新しいモジュールを使用して)まったく新しいルートを直接追加できます...

于 2013-01-01T03:39:23.037 に答える