Newbie: I think thinkphp's model is very weak and rarely has a single table. Basically, it is associated with n multiple tables. I don't know which one to instantiate with the model, you have to write a lot of SQL statements. the curd commands in the SQL statements are not enough. ------ solution ------------------ In fact, the framework is not good. I am responsible for writing SQL statements myself. ------ Solution -------------------- no use of tp, but in the memory of the novice to solve: I feel thinkphp model is very weak
There are very few single-table usages. Basically, they are all associated with n multiple tables. I don't know which one to instantiate with the model. I have to write a lot of SQL statements after I finish the instantiation, the curd commands in it are not enough.
------ Solution --------------------
In fact, the framework is not bad, and the responsible user writes SQL.
------ Solution --------------------
I have never used tp, but isn't the M method of tp in my memory a single table model? I have read it a long time ago. I remember wrong and ignored my reply.
------ Solution --------------------
1. the framework is an application template. you can use it if you have no idea whether it meets your needs. Except for the problem, it cannot be a weirdo.
2. the tp model is a table structure. what you do is naturally made by yourself
3. all frameworks use tables as models, which creates insurmountable obstacles: multi-table Association
Too personal, no one can abstract