protected function routeSetUpDefaultForHomeIfNoMatch () {
		/** @var $this \MvcCore\Router */
		if ($this->currentRoute === NULL) {
			$request = & $this->request;
			if ($this->routeToDefaultIfNotMatch) {
				$requestIsHome = (
					trim($request->GetPath(), '/') == '' || 
					$request->GetPath() == $request->GetScriptName()
				);
				if ($requestIsHome) {
					list($dfltCtrl, $dftlAction) = $this->application->GetDefaultControllerAndActionNames();
					$this->SetOrCreateDefaultRouteAsCurrent(
						static::DEFAULT_ROUTE_NAME, $dfltCtrl, $dftlAction
					);
					// set up requested params from query string if there are any 
					// (and path if there is path from previous function)
					$requestParams = array_merge([], $this->request->GetParams(FALSE));
					unset($requestParams[static::URL_PARAM_CONTROLLER], $requestParams[static::URL_PARAM_ACTION]);
					$this->requestedParams = & $requestParams;
				}
			}
		}
		return $this;
	}
protected function routeSetUpDefaultForHomeIfNoMatch () {
		/** @var $this \MvcCore\Router */
		if ($this->currentRoute === NULL) {
			$request = & $this->request;
			if ($this->routeToDefaultIfNotMatch) {
				$requestIsHome = (
					trim($request->GetPath(), '/') == '' || 
					$request->GetPath() == $request->GetScriptName()
				);
				if ($requestIsHome) {
					list($dfltCtrl, $dftlAction) = $this->application->GetDefaultControllerAndActionNames();
					$this->SetOrCreateDefaultRouteAsCurrent(
						static::DEFAULT_ROUTE_NAME, $dfltCtrl, $dftlAction
					);
					// set up requested params from query string if there are any 
					// (and path if there is path from previous function)
					$requestParams = array_merge([], $this->request->GetParams(FALSE));
					unset($requestParams[static::URL_PARAM_CONTROLLER], $requestParams[static::URL_PARAM_ACTION]);
					$this->requestedParams = & $requestParams;
				}
			}
		}
		return $this;
	}
protected function routeSetUpDefaultForHomeIfNoMatch ( ) { /** @var $this \MvcCore\Router */ if ( $ this -> currentRoute === NULL ) { $ request = & $ this -> request ; if ( $ this -> routeToDefaultIfNotMatch ) { $ requestIsHome = ( trim ( $ request -> GetPath ( ) , '/' ) == '' || $ request -> GetPath ( ) == $ request -> GetScriptName ( ) ) ; if ( $ requestIsHome ) { list ( $ dfltCtrl , $ dftlAction ) = $ this -> application -> GetDefaultControllerAndActionNames ( ) ; $ this -> SetOrCreateDefaultRouteAsCurrent ( static :: DEFAULT_ROUTE_NAME , $ dfltCtrl , $ dftlAction ) ; // set up requested params from query string if there are any  // (and path if there is path from previous function) $ requestParams = array_merge ( [ ] , $ this -> request -> GetParams ( FALSE ) ) ; unset ( $ requestParams [ static :: URL_PARAM_CONTROLLER ] , $ requestParams [ static :: URL_PARAM_ACTION ] ) ; $ this -> requestedParams = & $ requestParams ; } } } return $ this ; }
After routing is done, check if there is any current route.
If there is no current route found by any strategy, there is possible to
create default route object into current object automatically newly created
by default configured values. It is necessary to check if request is
targeting homepage or if router is configured to route request to default
controller and action. If those two conditions are OK, create new route
with default controller and action and set this new route as current route
to process default controller and action even if there is no route for it.
@return \MvcCore\Router
After routing is done check if there is any current route . If there is no current route found by any strategy there is possible to create default route object into current object automatically newly created by default configured values . It is necessary to check if request is targeting homepage or if router is configured to route request to default controller and action . If those two conditions are OK create new route with default controller and action and set this new route as current route to process default controller and action even if there is no route for it .