İlk temizlik tamamlandı bir önceki projeden
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
<?php
|
||||
namespace App\DevExtreme;
|
||||
class LoadHelper {
|
||||
public static function LoadModule($className) {
|
||||
$namespaceNamePos = strpos($className, __NAMESPACE__);
|
||||
if ($namespaceNamePos === 0) {
|
||||
$subFolderPath = substr($className, $namespaceNamePos + strlen(__NAMESPACE__));
|
||||
$filePath = __DIR__.str_replace("\\", DIRECTORY_SEPARATOR, $subFolderPath).".php";
|
||||
require_once($filePath);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user