I want to use redirect to jump directly to the previous page after the judgment is over.
But redirect need to specify the URL ...
But I want to jump URL need a lot of parameters, I do not want to be so troublesome.
Is there anything I can do to make me look like success? Do not need to specify a URL, jump back to the previous page
Accurately speaking, I need to do the function is a message function, the message after the successful need to refresh the page, to show the message I submitted, but I will not Ajax. So I want to jump directly from the page in TP ... Beginner learning. Help
Reply to discussion (solution)
Do not accurately understand the needs, submit the message is to return to the Message list page, or message content page, so there will be many parameters ...
You can also use routing in 1.redirect, using the U method
2. It is best to write a method in the controller to display the list page or content page, the message successfully jump directly to the corresponding Method!
Do not accurately understand the needs, submit the message is to return to the Message list page, or message content page, so there will be many parameters ...
You can also use routing in 1.redirect, using the U method
2. It is best to write a method in the controller to display the list page or content page, the message successfully jump directly to the corresponding Method!
That's it.. After the message is successful or return to this need to leave a message this page, because this page display I have already passed two parameters, if the method shows, I have to get these two parameters,
Khan, you this is in this page operation, meaning is to refresh this page? The URL of this page to the success method of the second parameter to jump to this page, in your operation parameters are known, this URL is good to write it
Khan, you this is in this page operation, meaning is to refresh this page? The URL of this page to the success method of the second parameter to jump to this page, in your operation parameters are known, this URL is good to write it
Don't success use redirect, okay? Success is too ugly. And then there's the time interval. I want to jump right in.
$this->redirect ("Index/detail/id/$id"); This is a mistake.
How to fix it, kiss.
Success is able to set the jump time, you set to 0 can not jump directly.
Why not learn Ajax? It's not hard to.
Success is able to set the jump time, you set to 0 can not jump directly.
0 also has the interval, I tried, mainly is success jumps the time will appear that silly smiling face. The feeling of vomiting blood
Success is able to set the jump time, you set to 0 can not jump directly.
0 also has the interval, I tried, mainly is success jumps the time will appear that silly smiling face. The feeling of vomiting blood
Then use Ajax to jump directly.