public function redirect ($to)
	{
		if (is_array($to)) {
			$to = join('/', $to);
		}

		$uri = $this->base_uri;

		if ('http://'  != substr($to, 0, 7) &&
			'https://' != substr($to, 0, 8)) {
			if ($to[0] != '/' && $uri[strlen($uri) - 1] != '/') {
				$to = '/' . $to;
			}

			$to = join('', [$this->base_uri, $to]);
		}

		header('Location: ' . $to);
		exit;
	}
public function redirect ($to)
	{
		if (is_array($to)) {
			$to = join('/', $to);
		}

		$uri = $this->base_uri;

		if ('http://'  != substr($to, 0, 7) &&
			'https://' != substr($to, 0, 8)) {
			if ($to[0] != '/' && $uri[strlen($uri) - 1] != '/') {
				$to = '/' . $to;
			}

			$to = join('', [$this->base_uri, $to]);
		}

		header('Location: ' . $to);
		exit;
	}
public function redirect ( $ to ) { if ( is_array ( $ to ) ) { $ to = join ( '/' , $ to ) ; } $ uri = $ this -> base_uri ; if ( 'http://' != substr ( $ to , 0 , 7 ) && 'https://' != substr ( $ to , 0 , 8 ) ) { if ( $ to [ 0 ] != '/' && $ uri [ strlen ( $ uri ) - 1 ] != '/' ) { $ to = '/' . $ to ; } $ to = join ( '' , [ $ this -> base_uri , $ to ] ) ; } header ( 'Location: ' . $ to ) ; exit ; }
Redirects to another module with an HTTP redirect

@param array $params Module parameters

@return bool False on redirect failure (module not found)
Redirects to another module with an HTTP redirect