private function loadDomains()
    {
        $domains = Cache::getInstance()->getDataFromFile(CONFIG_DIR . DIRECTORY_SEPARATOR . 'domains.json', Cache::JSON, true);
        if (null !== $domains) {
            foreach ($domains as $domain => $paths) {
                $this->addPath($paths['template'], preg_replace('/(@|\/)/', '', $domain));
            }
        }
    }
private function loadDomains()
    {
        $domains = Cache::getInstance()->getDataFromFile(CONFIG_DIR . DIRECTORY_SEPARATOR . 'domains.json', Cache::JSON, true);
        if (null !== $domains) {
            foreach ($domains as $domain => $paths) {
                $this->addPath($paths['template'], preg_replace('/(@|\/)/', '', $domain));
            }
        }
    }
private function loadDomains ( ) { $ domains = Cache :: getInstance ( ) -> getDataFromFile ( CONFIG_DIR . DIRECTORY_SEPARATOR . 'domains.json' , Cache :: JSON , true ) ; if ( null !== $ domains ) { foreach ( $ domains as $ domain => $ paths ) { $ this -> addPath ( $ paths [ 'template' ] , preg_replace ( '/(@|\/)/' , '' , $ domain ) ) ; } } }
Method that extract all domains for using them with the templates
Method that extract all domains for using them with the templates