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

.
Menu