Take user back to previous page after logging in?

后端 未结 6 1003
故里飘歌
故里飘歌 2021-01-20 16:18

I have a controller called Accounts, with the views signin and signout.

The corresponding functions look like this:

function signin()
{
    if (!empt         


        
6条回答
  •  天涯浪人
    2021-01-20 16:40

    http://book.cakephp.org/view/430/referer

    Use a hidden field that holds the initial referrer and gets submitted with the login data.

提交回复
热议问题