Redirect, Success page Jump question

Source: Internet
Author: User
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.
  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.