2011-07-03 34 views
0

我安裝了Symfony,sfDoctrineGuardUser和sfForkedDoctrineApplyPlugin,但我不知道我neen進入了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

這兩個路由(after_route和after_login_route)當前是否存在於您的routing.yml中?這兩個顯然需要是現有的路線。 – Tom

回答

0

將「after_code」替換爲默認索引模塊並附加/ index。例如,我使用welcome/index。它在登錄到該頁面後重定向用戶。