Jelix\Core\AppInstance::getModulePath PHP Method

getModulePath() public method

return the real path of an enabled module.
public getModulePath ( string $module, boolean $includingExternal = false ) : string
$module string a module name
$includingExternal boolean true if we want the path of a module enabled in an other entry point.
return string the corresponding path
    public function getModulePath($module, $includingExternal = false)
    {
        if (!$this->_config) {
            throw new \Exception('Configuration is not loaded');
        }
        if (!isset($this->_config->_modulesPathList[$module])) {
            if ($includingExternal && isset($this->_config->_externalModulesPathList[$module])) {
                return $this->_config->_externalModulesPathList[$module];
            }
            throw new \Exception('getModulePath : invalid module name');
        }
        return $this->_config->_modulesPathList[$module];
    }