新手求解:感觉thinkphp的模型很鸡肋,该如何解决
Jun 13, 2016 am 11:04 AM
新手求解:感觉thinkphp的模型很鸡肋
很少有单表的用法啊,基本上都是关联n多表,用模型我都不知道该实例化哪个,完了还得写一大堆sql语句,它里边的那些curd命令根本不够看
------解决方案--------------------
其实框架都差不错,负责的自己写sql。
------解决方案--------------------
没用过tp,不过记忆中tp的M方法不就是一个单表的模型么,很久前看过了,记错了忽视我这条回复
------解决方案--------------------
1、框架是应用程序的模板,你都没搞清楚他是否符合你的需求就去用。除了问题可是不能怪人家的
2、tp 的模型就是一个表结构,具体做什么自然是你自己弄的
3、所有的框架都把表作为 Model,也就伴生了无法逾越的障碍:多表关联
太个性了,任谁都无法抽象

Hot Article

Hot tools Tags

Hot Article

Hot Article Tags

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

What is the difference between HQL and SQL in Hibernate framework?

10 Ways to Adjust Brightness on Windows 11

How to turn off private browsing authentication for iPhone in Safari?

Usage of division operation in Oracle SQL

What does the identity attribute in SQL mean?

Comparison and differences of SQL syntax between Oracle and DB2

Detailed explanation of the Set tag function in MyBatis dynamic SQL tags
