sfForkedDoctrineApplyPlugin -routing.yml 中输入了什么?
我安装了 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”不 存在。
我必须在那里输入什么?
I installed Symfony, sfDoctrineGuardUser and sfForkedDoctrineApplyPlugin, but i dont know what i neen enter to routing.yml.
In documentation
http://www.symfony-project.org/plugins/sfForkedDoctrineApplyPlugin
is only:
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
but dont write what need enter to routing.yml andi have error:
The route "after_route" does not
exist.
and
The route "after_login_route" does not
exist.
what i must there entered?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
将“after_code”替换为默认索引模块并附加 /index.html。例如,我使用welcome/index。它将用户登录后重定向到该页面。
Replace "after_code" to your default index module and append /index. I use welcome/index for example. It redirects the user after the login to that page.