public function execute($code = null) {

		if(null !== $code && false === ('-' . intval($code) == '-' . $code)) {
			return trigger_error(sprintf('Argument 1 passed to %s() must be of the type integer, "%s" given', __METHOD__, gettype($code)), E_USER_ERROR);
		}

		$this -> setUrl();

		if(null !== $this -> seconds) {
			return Response :: addHeader('refresh', sprintf('%d;url=%s', $this -> seconds, $this -> url), $code);
		}

		Response :: addHeader('Location', $this -> url, $code);
	}
public function execute($code = null) {

		if(null !== $code && false === ('-' . intval($code) == '-' . $code)) {
			return trigger_error(sprintf('Argument 1 passed to %s() must be of the type integer, "%s" given', __METHOD__, gettype($code)), E_USER_ERROR);
		}

		$this -> setUrl();

		if(null !== $this -> seconds) {
			return Response :: addHeader('refresh', sprintf('%d;url=%s', $this -> seconds, $this -> url), $code);
		}

		Response :: addHeader('Location', $this -> url, $code);
	}
public function execute ( $ code = null ) { if ( null !== $ code && false === ( '-' . intval ( $ code ) == '-' . $ code ) ) { return trigger_error ( sprintf ( 'Argument 1 passed to %s() must be of the type integer, "%s" given' , __METHOD__ , gettype ( $ code ) ) , E_USER_ERROR ) ; } $ this -> setUrl ( ) ; if ( null !== $ this -> seconds ) { return Response :: addHeader ( 'refresh' , sprintf ( '%d;url=%s' , $ this -> seconds , $ this -> url ) , $ code ) ; } Response :: addHeader ( 'Location' , $ this -> url , $ code ) ; }
Execute forward, with options HTTP status code
@param integer $code
Execute forward with options HTTP status code