Jump to content

pwiredeish way of redirecting?


zota
 Share

Recommended Posts

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 ?
 
thanks
julio

Link to comment
Share on other sites

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
 

  • Like 1
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...