Bluz\Application\Exception\RedirectException::setUrl PHP Method

setUrl() public method

Set Url to Redirect
public setUrl ( string $url )
$url string
    public function setUrl($url)
    {
        $this->url = $url;
    }

Usage Example

Example #1
0
 /**
  * Redirect to URL
  *
  * @param  string $url
  * @return void
  * @throws RedirectException
  */
 public static function redirect($url)
 {
     $redirect = new RedirectException();
     $redirect->setUrl($url);
     throw $redirect;
 }
RedirectException