$containerParams
$controllerAction
$controllerName
$redirectMessage
$redirectParams
$redirectTarget
$redirectType
$responseCode
$viewName
RESOURCE_CANONICAL
RESOURCE_CANONICAL_PERMANENT
RESOURCE_CREATED
RESOURCE_UPDATED
SUCCESS
Redirect controller response.
This indicates that we want to externally redirect the user to another page. Depending on the output type, this may not actually redirect. This may tell the user that we created the resource and give them the URL.
package | XenForo_Mvc |
---|
$containerParams : array
inherited_from | \XenForo_ControllerResponse_Abstract::$$containerParams |
---|
$controllerAction
inherited_from | \XenForo_ControllerResponse_Abstract::$$controllerAction |
---|
$controllerName
inherited_from | \XenForo_ControllerResponse_Abstract::$$controllerName |
---|
$redirectMessage
$redirectParams
$redirectTarget
$redirectType
$responseCode : integer
inherited_from | \XenForo_ControllerResponse_Abstract::$$responseCode |
---|
$viewName
inherited_from | \XenForo_ControllerResponse_Abstract::$$viewName |
---|
RESOURCE_CANONICAL : int
For example, this would be used when redirecting the URL /thread/1/new-post to /thread/1/page2#post25.
This should be used when the URL receiving the request may reasonably redirect to different pages at different times (ie, temporary redirect). If this redirect is likely to be permanent, use RESOURCE_CANONICAL_PERMANENT.
RESOURCE_CANONICAL_PERMANENT : int
For example, this would be used when redirecting the URL /post/25 to /thread/1#p25.
This should only be used when there is no reasonable expectation that the redirect target for a given request will vary (ie, permanent redirect). Otherwise, use RESOURCE_CANONICAL.
RESOURCE_CREATED : int
If the user is being redirected anywhere else, use SUCCESS.
RESOURCE_UPDATED : int
If the user is being redirected anywhere else, use SUCCESS.
SUCCESS : int
This might be used when a resource has been created or updated but isn't the redirect target.