Thinkphp3.2 defines database remote connection error in the model

Protected $autoCheckFields = false;// virtual model
static public $DB_goods = M ("goods", C (" DB_CONFIG6_PREFIX"), C ("DB_CONFIG6")); / / this line reports an error: syntax error, unexpected" (", expecting","or";"
what is the reason?

Mar.03,2021

obviously, syntax error. Check


  

I think it is possible that the database table connection cannot be defined directly in the model as in the controller. By defining a method in the model to implement
PS:, I still don't understand what the principle is. I hope to have a great solution

.
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b9e921-2f42d.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b9e921-2f42d.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?