0 users online. Create an account or sign in to join them.Users
forward page event
This is an open discussion with 3 replies, filed under Troubleshooting.
Search
I attach the event I have used successfully. It redirects only if you are not logged in. Just rename it to event.redirect.php.
I tried to use param values in the url, instead of hardcoding, like so;
'Location: {$root}/{$main-page}/{$active-language}'
ofcourse that doesnt work, any idea how to pull the params within php?
Classes that extend the Event class need to adhere to the Event interface, therefore they all need to have a __trigger function. So strip the content of these functions, but not the function declarations themselves :-)
Create an account or sign in to comment.
In 1.7 one could simply put a
function load(){ header("Location: http://google.com"); }in a stripped event But now with the abstraction applied I can't get rid of the missing method-errors.
Can anyone advice how to create an event that simply redirects on load?