function makeupBlocks() { $blocks_path = HelperFile::normalizeFilePath(Manager::getPath('blocks')); if (file_exists($blocks_path)) { foreach (\File::directories($blocks_path) as $path) { $path = HelperFile::normalizeFilePath($path); Manager::block(trim(str_replace($blocks_path, '', $path), '/')); } } }
/** * @param mixed $dir */ public static function setPrefix($prefix) { self::$prefix = trim(HelperFile::normalizeFilePath($prefix), '/'); }