nitra / e-commerce-site-authbundle
此包已被弃用且不再维护。未建议替代包。
认证包
v1.0
2014-07-28 16:46 UTC
This package is auto-updated.
Last update: 2018-04-27 10:32:07 UTC
README
导入路由
导入路由
# app/config/routing.yml
nitra_auth:
resource: "@NitraAuthBundle/Resources/config/routing.yml"
prefix: /
启用包
将包添加到kernel
// app/AppKernel.php
public function registerBundles()
{
$bundles = array(
// ...
new Nitra\AuthBundle\NitraAuthBundle(),
);
}
网站位置
AuthBundle与BuyerBundle协作,并使用其文档。要启用登录和注册按钮,只需添加
{% render controller("NitraBuyerBundle:PrivateOffice/PrivateOffice:enter") %}
到base.html.twig中。例如
{% block header_info %}
{% render controller("NitraInformationBundle:Information/Information:informationMenu") %}
{% render controller("NitraBuyerBundle:PrivateOffice/PrivateOffice:enter") %}
{% endblock header_info %}