web/UniView.php
protected function getViewsSubSubdir($currentViewFile)
    {
        $viewsSubSubdir = false;
        $currentViewFile = realpath($currentViewFile);
        $currentViewPath = dirname($currentViewFile);

        $module = $this->context->module;

        $pathList = $module->getBasePathList();
        foreach ($pathList as $modulePath) {
            $viewsPath = realpath($modulePath) . DIRECTORY_SEPARATOR . $module::$viewsSubdir;
            if (strpos($currentViewPath, $viewsPath) === 0) {
                $viewsSubSubdir = substr($currentViewPath, strlen($viewsPath) + 1);
                return $viewsSubSubdir;
            }
        }
        throw new InvalidParamException(
            "Unexpected view file '{$currentViewFile}' is out of module's '{$module->className()}' parents chain"
        );
    }
protected function getViewsSubSubdir($currentViewFile)
    {
        $viewsSubSubdir = false;
        $currentViewFile = realpath($currentViewFile);
        $currentViewPath = dirname($currentViewFile);

        $module = $this->context->module;

        $pathList = $module->getBasePathList();
        foreach ($pathList as $modulePath) {
            $viewsPath = realpath($modulePath) . DIRECTORY_SEPARATOR . $module::$viewsSubdir;
            if (strpos($currentViewPath, $viewsPath) === 0) {
                $viewsSubSubdir = substr($currentViewPath, strlen($viewsPath) + 1);
                return $viewsSubSubdir;
            }
        }
        throw new InvalidParamException(
            "Unexpected view file '{$currentViewFile}' is out of module's '{$module->className()}' parents chain"
        );
    }
protected function getViewsSubSubdir ( $ currentViewFile ) { $ viewsSubSubdir = false ; $ currentViewFile = realpath ( $ currentViewFile ) ; $ currentViewPath = dirname ( $ currentViewFile ) ; $ module = $ this -> context -> module ; $ pathList = $ module -> getBasePathList ( ) ; foreach ( $ pathList as $ modulePath ) { $ viewsPath = realpath ( $ modulePath ) . DIRECTORY_SEPARATOR . $ module :: $ viewsSubdir ; if ( strpos ( $ currentViewPath , $ viewsPath ) === 0 ) { $ viewsSubSubdir = substr ( $ currentViewPath , strlen ( $ viewsPath ) + 1 ) ; return $ viewsSubSubdir ; } } throw new InvalidParamException ( "Unexpected view file '{$currentViewFile}' is out of module's '{$module->className()}' parents chain" ) ; }
Get views sub subdir.
@param string $currentViewFile
@return string
@throws InvalidParamException if $currentViewFile is out of this module parents path list
Get views sub subdir .