How to add Ajax capabilites to Symfony

后端 未结 4 683
旧巷少年郎
旧巷少年郎 2021-01-20 03:47

I have a set of sessions in a page, which I want to remove using AJAX. i.e click on a link, and without having to navigate for a new page, just remove the session, and show

4条回答
  •  滥情空心
    2021-01-20 04:44

    Try to put the value of the URL's option between quotes :

    url: '{{ url('ajax_remove_session') }}',
    

提交回复
热议问题