Symfony代码注销未达到角度

时间:2017-08-21 20:19:40

标签: php angularjs symfony

我有一点问题,我真的不知道如何解决它。我试图使用angular 1x在symfony中实现注销。 我的一些代码是:

CSS

角:

.noselect {
   -webkit-touch-callout: none; /* iOS Safari */
   -webkit-user-select: none; /* Safari */
   -khtml-user-select: none; /* Konqueror HTML */
   -moz-user-select: none; /* Firefox */
   -ms-user-select: none; /* Internet Explorer/Edge */
    user-select: none; /* Non-prefixed version, currently
                              supported by Chrome and Opera *
     }

的routing.yml

 <button ui-sref='logout'>...</button>

UserController中(的appbundle):

 .state('logout', {
       url: '/logout',
       controller: 'LogoutController',
       resolve: ....
       } 
  )

LogoutController:

 path: /logout
 defaults: { _controller: AppBundle:User:logout }
 method: [POST]

最后一个角度部分正在工作,它将我重定向到登录页面,但我无法访问symfony部分,我不知道为什么。来自状态的url应与路由路径匹配,然后从用户控制器访问logout方法。但它并没有。有任何想法吗?我错过了什么?

0 个答案:

没有答案