public function redirectTo( $url = 0, $code = 302 ) {
		if ( $url === null ) {
			$this->redirectTo = null;
			return true;
		}
		if ( !is_string( $url ) || !is_int( $code ) ) {
			return false;
		}
		$this->redirectTo = [ $url, $code ];
		return true;
	}
public function redirectTo( $url = 0, $code = 302 ) {
		if ( $url === null ) {
			$this->redirectTo = null;
			return true;
		}
		if ( !is_string( $url ) || !is_int( $code ) ) {
			return false;
		}
		$this->redirectTo = [ $url, $code ];
		return true;
	}
public function redirectTo ( $ url = 0 , $ code = 302 ) { if ( $ url === null ) { $ this -> redirectTo = null ; return true ; } if ( ! is_string ( $ url ) || ! is_int ( $ code ) ) { return false ; } $ this -> redirectTo = [ $ url , $ code ] ; return true ; }
Redirect or refresh to url. Pass null to undo redirection.

@param string $url
@param int $code [optional] Defaults to 302
@return bool false on failure.
Redirect or refresh to url . Pass null to undo redirection .