src/Ubiquity/controllers/Startup.php
public static function forward($url, $initialize = true, $finalize = true) {
		$u = self::parseUrl ( $url );
		if (is_array ( Router::getRoutes () ) && ($ru = Router::getRoute ( $url )) !== false) {
			if (\is_array ( $ru )) {
				if (is_callable ( $ru [0] )) {
					self::runCallable ( $ru );
				} else {
					self::_preRunAction ( $ru, $initialize, $finalize );
				}
			} else {
				echo $ru; // Displays route response from cache
			}
		} else {
			self::setCtrlNS ();
			$u [0] = self::$ctrlNS . $u [0];
			self::_preRunAction ( $u, $initialize, $finalize );
		}
	}
public static function forward($url, $initialize = true, $finalize = true) {
		$u = self::parseUrl ( $url );
		if (is_array ( Router::getRoutes () ) && ($ru = Router::getRoute ( $url )) !== false) {
			if (\is_array ( $ru )) {
				if (is_callable ( $ru [0] )) {
					self::runCallable ( $ru );
				} else {
					self::_preRunAction ( $ru, $initialize, $finalize );
				}
			} else {
				echo $ru; // Displays route response from cache
			}
		} else {
			self::setCtrlNS ();
			$u [0] = self::$ctrlNS . $u [0];
			self::_preRunAction ( $u, $initialize, $finalize );
		}
	}
public static function forward ( $ url , $ initialize = true , $ finalize = true ) { $ u = self :: parseUrl ( $ url ) ; if ( is_array ( Router :: getRoutes ( ) ) && ( $ ru = Router :: getRoute ( $ url ) ) !== false ) { if ( \ is_array ( $ ru ) ) { if ( is_callable ( $ ru [ 0 ] ) ) { self :: runCallable ( $ ru ) ; } else { self :: _preRunAction ( $ ru , $ initialize , $ finalize ) ; } } else { echo $ ru ; // Displays route response from cache } } else { self :: setCtrlNS ( ) ; $ u [ 0 ] = self :: $ ctrlNS . $ u [ 0 ] ; self :: _preRunAction ( $ u , $ initialize , $ finalize ) ; } }
Forwards to url

@param string $url The url to forward to
@param boolean $initialize If true, the **initialize** method of the controller is called
@param boolean $finalize If true, the **finalize** method of the controller is called
Forwards to url