摘要: $name = 'test'; $controller = 'test'; $a = '\\addons\\'.$name.'\\model\\'.$controller; $this->model = new $a(); 1.某个类的路径可以单独赋值给某个变量,new的时候需要当前变量加()实例化 阅读全文
posted @ 2021-07-18 17:21 skyhxm 阅读(285) 评论(0) 推荐(0)