Hand-picked solution: I feel thinkphp's model is very weak.
Source: Internet
Author: User
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 after you finish it. the curd commands in the SQL statements are not enough. In fact, the frameworks are not good, and you are responsible for writing SQL statements by yourself ., I have never used tp, but the M method of tp in my memory is not just a newbie's solution: I think thinkphp's 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
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service