Jaxel
Well-known member
Okay... lets say I am doing the following:
In addition to sending the user to the new page, I also want to send the user a string parameter. For instance, if I am redirecting a user to a media page, I want to also tell them why I am sending them to the media page. As well, can I do this from a DataWriter? In my DW I am checking to see if a media is unique; if its not unique I don't want to print out a general error. Instead I want to redirect them to the existing video and send the general error through a parameter.
Code:
return $this->responseRedirect(
XenForo_ControllerResponse_Redirect::SUCCESS,
XenForo_Link::buildPublicLink('media', $media)
);
In addition to sending the user to the new page, I also want to send the user a string parameter. For instance, if I am redirecting a user to a media page, I want to also tell them why I am sending them to the media page. As well, can I do this from a DataWriter? In my DW I am checking to see if a media is unique; if its not unique I don't want to print out a general error. Instead I want to redirect them to the existing video and send the general error through a parameter.