Jelix\Core\AppInstance::declareModule PHP Method

declareModule() public method

declare a module.
public declareModule ( $modulePath )
    public function declareModule($modulePath)
    {
        $this->_allModulesPath = null;
        $this->_allPluginsPath = null;
        if (!is_array($modulePath)) {
            $modulePath = array($modulePath);
        }
        foreach ($modulePath as $path) {
            $p = realpath($path);
            if ($p == '') {
                throw new \Exception('Given module dir ' . $path . 'does not exists');
            }
            $this->_modulesPath[] = rtrim($p, '/');
        }
    }