A naming convention for a model class is a data table name that drops the table prefix, is named with the Hump method, and the first letter is capitalized, followed by the model layer name (the default is model), for example: model name contract corresponding data table (assuming the database prefix definition is THINK_) Usermodel think_ User Usertypemodel Think_user_type If your rule does not match the above system conventions, you need to set the data table Name property of the model class to ensure that the corresponding data table is found. m function under the model naming rule limit m (' usertype ') gets the corresponding data table is ' prefix _user_type ', if the real table in the database is prefixed _usertype, an error occurs, the solution takes the D function or M (' usertype ') Lower case can achieve the goal
thinkphp m function doubtful