zota Posted May 1, 2015 Share Posted May 1, 2015 Hi great people out here! I'm resending the user to a new (cloned) page with this: header("Location: {$newPage->httpURL()}"); It works, sure, but aren't there a more pwiredeish way of redirecting? like: $newPage ->showUpBaby ? thanksjulio Link to comment Share on other sites More sharing options...
Mike Rockett Posted May 1, 2015 Share Posted May 1, 2015 Hi Julio You can use $session->redirect($newPage->url). 1 Link to comment Share on other sites More sharing options...
zota Posted May 2, 2015 Author Share Posted May 2, 2015 aaaahhh... nice! I have to use httpUrl() instead of url. like this: $session->redirect($newPage->httpUrl()); but maybe due to my system or bad testing. Thanks a lot 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now