就是不使用 use 加载
eg:
$test = 'News';
$aa = 'Wechat'.$test.'Reply';
$modelName = "\backend\models\wechat\{$aa}";
$newsReply = $modelName::findOne(['rid'=>113]);
就是不使用 use 加载
eg:
$test = 'News';
$aa = 'Wechat'.$test.'Reply';
$modelName = "\backend\models\wechat\{$aa}";
$newsReply = $modelName::findOne(['rid'=>113]);