public function handleRouter()
	{
		// Load initial/default routes if there're no components or the component wants to merge them
    	if ($this->component === false || $this->component->getMergeDefaultRouting()) {
    		$this->getRouter()->loadRoutes(
    			__APP_CONFIG_ROUTING,
				!$this->getSetting('forcelogin', true),
				$this->getSetting('forcesession', true),
				$this->getSetting('templatebase', true),
				$this->getSetting('templatepath', true)
			);
    	}

		// If there's a component
		if ($this->component !== false) {
			$this->getRouter()->loadRoutes(
				$this->component->hasRouting() ? $this->component->getRoutingPath() : __APP_CONFIG_ROUTING,
				!$this->getSetting('forcelogin'),
				$this->getSetting('forcesession'),
				$this->getSetting('templatebase'),
				$this->getSetting('templatepath')
			);
    	}
    	    	
    	$this->getRouter()->handleRoute(__BASE);
    }
public function handleRouter()
	{
		// Load initial/default routes if there're no components or the component wants to merge them
    	if ($this->component === false || $this->component->getMergeDefaultRouting()) {
    		$this->getRouter()->loadRoutes(
    			__APP_CONFIG_ROUTING,
				!$this->getSetting('forcelogin', true),
				$this->getSetting('forcesession', true),
				$this->getSetting('templatebase', true),
				$this->getSetting('templatepath', true)
			);
    	}

		// If there's a component
		if ($this->component !== false) {
			$this->getRouter()->loadRoutes(
				$this->component->hasRouting() ? $this->component->getRoutingPath() : __APP_CONFIG_ROUTING,
				!$this->getSetting('forcelogin'),
				$this->getSetting('forcesession'),
				$this->getSetting('templatebase'),
				$this->getSetting('templatepath')
			);
    	}
    	    	
    	$this->getRouter()->handleRoute(__BASE);
    }
public function handleRouter ( ) { // Load initial/default routes if there're no components or the component wants to merge them
 if ( $ this -> component === false || $ this -> component -> getMergeDefaultRouting ( ) ) { $ this -> getRouter ( ) -> loadRoutes ( __APP_CONFIG_ROUTING , ! $ this -> getSetting ( 'forcelogin' , true ) , $ this -> getSetting ( 'forcesession' , true ) , $ this -> getSetting ( 'templatebase' , true ) , $ this -> getSetting ( 'templatepath' , true ) ) ; } // If there's a component
 if ( $ this -> component !== false ) { $ this -> getRouter ( ) -> loadRoutes ( $ this -> component -> hasRouting ( ) ? $ this -> component -> getRoutingPath ( ) : __APP_CONFIG_ROUTING , ! $ this -> getSetting ( 'forcelogin' ) , $ this -> getSetting ( 'forcesession' ) , $ this -> getSetting ( 'templatebase' ) , $ this -> getSetting ( 'templatepath' ) ) ; } $ this -> getRouter ( ) -> handleRoute ( __BASE ) ; }
Load and handle the application routing

@throws PlinthException
Load and handle the application routing