first commit

This commit is contained in:
wuyanwen
2019-12-02 23:04:43 +08:00
commit 40676f8b14
70 changed files with 2855 additions and 0 deletions

22
catchAdmin/helper.php Normal file
View File

@@ -0,0 +1,22 @@
<?php
/**
* 模块 view path
*
*/
use think\helper\Arr;
if (!function_exists('getModuleViewPath()')) {
function getModuleViewPath($module) {
if (file_exists($views = app()->getRuntimePath() . 'module' . DIRECTORY_SEPARATOR . 'view.php')) {
$views = include $views;
return $views[$module];
} else {
}
return '';
}
}