public static function assets($_class) { $folder_name = substr(md5(\hmvc\Utils\Crypt::crc32($_class)), 0, 11); $path = Application::$rootPath . 'assets/' . $folder_name; if (!is_dir($path) && \hmvc\Utils\File::dir_is_writable(Application::$rootPath . 'assets/')) { mkdir($path, 0777); } return $path; }