0

我安装了 Symfony、sfDoctrineGuardUser 和 sfForkedDoctrineApplyPlugin,但我不知道我在 routing.yml 中输入了什么。

在文档中

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

只是:

您可以修改 sfApply 模块操作的 URL。为此,只需将此选项添加到您的 app.yml 文件中:

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 并且我有错误:

路线“after_route”不存在。

路线“after_login_route”不存在。

我必须输入什么?

4

1 回答 1

0

将“after_code”替换为您的默认索引模块并附加 /index。例如,我使用欢迎/索引。它在登录后将用户重定向到该页面。

于 2011-10-12T23:24:48.937 回答