namespace app\index\model;
function custom($bcids, $param){
foreach($bcids as $custom){
$file = env('extend_path').'custom/'.$custom['module'].'.php';
if(file_exists($file)){
$res = \custom\$custom['module']::instance()->run();
}
}
}
类文件在 custom 目录下,现在这样会报错,如果变量换成这样
$res = \custom\Hello::instance()->run();
则不会报错,大神,求助该怎么写?
