public match (mixed $callback)
Allows to set a callback to handle the request directly in the route
$router->add("/help", array())->match(function () {
return $this->getResponse()->redirect('https://support.google.com/', true);
});
public match (mixed $callback)
Allows to set a callback to handle the request directly in the route
$router->add("/help", array())->match(function () {
return $this->getResponse()->redirect('https://support.google.com/', true);
});
Please login to continue.