2011-07-03 2 views
0

私はsymfony、sfDoctrineGuardUserとsfForkedDoctrineApplyPluginをインストールしましたが、routing.ymlに何を入力するのか分かりません。sfForkedDoctrineApplyPlugin - 何をrouting.ymlに入力しますか?

ドキュメントで

http://www.symfony-project.org/plugins/sfForkedDoctrineApplyPlugin

だけです:

You can modify URL's for the sfApply module's action. To do that, simply add this options to your app.yml file:

all: 
    #... 
    sfForkedApply: 
    #... 
    routes: 
     apply: /user/new 
     reset: /user/password-reset 
     resetRequest: /user/reset-request 
     resetCancel: /user/reset-cancel 
     validate: /user/confirm/:validate 
     settings: /user/settings 

all: 
    #... 
    sfForkedApply: 
    afterLogin: after_login_route 
    after: after_route 
    # as a fallback we use old options too: 
    sfApplyPlugin: 
    afterLogin: after_login_route 
    after: after_route 

が、routing.ymlのアンディに入る必要なものを書くいけないがエラーを持っている:

The route "after_route" does not exist.

および

The route "after_login_route" does not exist.

何が入力される必要がありますか?

+0

現在、これらの2つのルート(after_routeとafter_login_route)はrouting.ymlに存在しますか?これらの2つは明らかに既存のルートである必要があります。 – Tom

答えて

0

"after_code"をデフォルトのインデックスモジュールに置き換えて、/ indexを追加します。たとえば、ウェルカム/インデックスを使用します。そのページへのログイン後にユーザーをリダイレクトします。

関連する問題