/** * redirect finish action and redirect to $url * * @param string $url * @param int $code * @access public * @return void */ public function redirect($url, $code = 302) { $url = preg_replace_callback('#[^A-Za-z0-9&/=\\#?()%]*#', function ($matches) { return urlencode($matches[0]); }, $url); Pix_HttpResponse::redirect($url, $code); return $this->noview(); }
/** * redirect finish action and redirect to $url * * @param string $url * @param int $code * @access public * @return void */ public function redirect($url, $code = 302) { Pix_HttpResponse::redirect($url, $code); return $this->noview(); }