Summary
- File
- Package hierarchy MVC\Dispatcher
- Class hierarchy \AbstractUrlMapper \UrlRedirectMapper
Redirect to the an url
Redirect to the an url
__construct(string $redirect_url, string $capture_regex = '`^/?$`u')
build a new UrlDispatcherItem
string | $redirect_url | the url on which the redirection will be done |
string | $capture_regex | the regular expression matching the url
and capturing the controller method parameters. By default, match the empty url |
None found |
match(string $url) : boolean
Returns true if the UrlDispatcherItem match the url
string | $url | the to match |
true if the UrlDispatcherItem match the url
None found |
call()
Call the controller method if the url match and if the method exists
None found |
get_captured_parameters()
None found |
$capture_regex : string
None found |
$captured_parameters : array<mixed,string>
None found |
$redirect_url :
None found |