public function redirect($url, $header=301)
    {
        $this->disableLayout();
        $this->setNoRender();

        $this->_params["dispatcher"]->clearHeaders();
        $this->_params["dispatcher"]->addHeader("Location", $url, $header);
    }
public function redirect($url, $header=301)
    {
        $this->disableLayout();
        $this->setNoRender();

        $this->_params["dispatcher"]->clearHeaders();
        $this->_params["dispatcher"]->addHeader("Location", $url, $header);
    }
public function redirect ( $ url , $ header = 301 ) { $ this -> disableLayout ( ) ; $ this -> setNoRender ( ) ; $ this -> _params [ "dispatcher" ] -> clearHeaders ( ) ; $ this -> _params [ "dispatcher" ] -> addHeader ( "Location" , $ url , $ header ) ; }
Using the dispatcher
Using the dispatcher