src/Route/Router.php
protected function getViewLogicSubPath(string $uriPath):string {
		$uriPath = str_replace(
			"/",
			DIRECTORY_SEPARATOR,
			$uriPath
		);
		$baseViewLogicPath = $this->getBaseViewLogicPath();
		$absolutePath = $baseViewLogicPath . $uriPath;

		$relativePath = substr($absolutePath, strlen($baseViewLogicPath));
		if(strlen($relativePath) > 1) {
			$relativePath = rtrim($relativePath, DIRECTORY_SEPARATOR);
		}
		return $relativePath;
	}
protected function getViewLogicSubPath(string $uriPath):string {
		$uriPath = str_replace(
			"/",
			DIRECTORY_SEPARATOR,
			$uriPath
		);
		$baseViewLogicPath = $this->getBaseViewLogicPath();
		$absolutePath = $baseViewLogicPath . $uriPath;

		$relativePath = substr($absolutePath, strlen($baseViewLogicPath));
		if(strlen($relativePath) > 1) {
			$relativePath = rtrim($relativePath, DIRECTORY_SEPARATOR);
		}
		return $relativePath;
	}
protected function getViewLogicSubPath ( string $ uriPath ) : string { $ uriPath = str_replace ( "/" , DIRECTORY_SEPARATOR , $ uriPath ) ; $ baseViewLogicPath = $ this -> getBaseViewLogicPath ( ) ; $ absolutePath = $ baseViewLogicPath . $ uriPath ; $ relativePath = substr ( $ absolutePath , strlen ( $ baseViewLogicPath ) ) ; if ( strlen ( $ relativePath ) > 1 ) { $ relativePath = rtrim ( $ relativePath , DIRECTORY_SEPARATOR ) ; } return $ relativePath ; }
The view-logic sub-path is the path on disk to the directory containing the requested
View and Logic files, relative to the base view-logic path.
The view - logic sub - path is the path on disk to the directory containing the requested View and Logic files relative to the base view - logic path .