RedirectException (class)

Class RedirectException

An exception subclass used by the routing layer to indicate that a route has resolved to a redirect.

The URL and status code are provided as constructor arguments.

throw new RedirectException('http://example.com/some/path', 301);
Exception implements Throwable
Extended by RuntimeException
Extended by Cake\Routing\Exception\RedirectException

Inherited Properties

  • code, file, line, message

© 2005–2017 The Cake Software Foundation, Inc.
Licensed under the MIT License.
CakePHP is a registered trademark of Cake Software Foundation, Inc.
We are not endorsed by or affiliated with CakePHP.
https://api.cakephp.org/3.3/class-Cake.Routing.Exception.RedirectException.html

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部