friendsofvictoire / connect-widget
Victoire Connect 小部件
2.0.3
2018-03-02 14:34 UTC
Requires
- php: >=5.3.3
- friendsofsymfony/user-bundle: ~2.0
- symfony/framework-bundle: ~2.3 | ~3.0 | ~4.0
- victoire/victoire: >=2.0.0|~3.0
This package is not auto-updated.
Last update: 2024-09-14 18:47:28 UTC
README
开始使用
需要在 victoire cms 网站中添加登录表单吗?
首先,您需要拥有有效的 Symfony Victoire 版本。然后,只需运行以下 composer 命令
php composer.phar require friendsofvictoire/connect-widget
在您的 AppKernel 中声明小部件
new Victoire\Widget\ConnectBundle\VictoireWidgetConnectBundle(),
在 app\config\routing.yml
中添加路由
victoire_widget_connect: resource: "@VictoireWidgetConnectBundle/Resources/config/routing.yml"
Widget Connect 使用一些样式和 js,您可以使用 Assetic Injector 或手动包含资源。
然后,您只需拥有 ROLE_VICTOIRE_DEVELOPER
并添加此小部件。
基本选项
redirect_url
: 字符串 - 登录成功后重定向到此 URL。
form_login
: 布尔值 - 显示或隐藏登录表单。