I am looking for a simple redirect for cakephp 2.1 with a wait time.
I’d like the view page to redirect after -lets say 5 seconds- to an external url.
Any idea how I could implement this?
Thanks in advance
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The easiest solutions either involve jquery/javascrpt, meta or php headers in a view. I do not believe cake has a dedicate way to do this but an alternative could be a simple for loop and just do a simple +1 count to like 5000 or whatever value is needed to take 5 seconds and then do the normal cake redirect.
simple view examples.
php header
meta