src/Ease/Page.php
public function redirect($url)
    {
        $messages = Shared::instanced()->statusMessages;
        if (count($messages)) {
            $_SESSION['EaseMessages'] = $messages;
        }
        if (headers_sent()) {
            $this->addJavaScript('window.location = "'.$url.'"', 0, false);
        } else {
            header('Location: '.$url);
        }
        $this->pageClosed = true;
    }
public function redirect($url)
    {
        $messages = Shared::instanced()->statusMessages;
        if (count($messages)) {
            $_SESSION['EaseMessages'] = $messages;
        }
        if (headers_sent()) {
            $this->addJavaScript('window.location = "'.$url.'"', 0, false);
        } else {
            header('Location: '.$url);
        }
        $this->pageClosed = true;
    }
Perform http redirect
Provede http přesměrování.

@param string $url adresa přesměrování