您的位置 首页 php

ThinkPHP是软件框架吗

ThinkPHP是为了简化企业级应用开发和敏捷WEB应用开发而诞生的。最早诞生于2006年初,2007年元旦正式更名为ThinkPHP,并且遵循Apache2开源协议发布。ThinkPHP从诞生以来一直秉承简洁实用的设计原则,在保持出色的性能和至简的代码的同时,也注重易用性。并且拥有众多原创功能和特性,在社区团队的积极参与下,在易用性、扩展性和性能方面不断优化和改进。

推荐课程:PHP教程。

ThinkPHP是软件框架吗

ThinkPHP是一个快速、兼容而且简单的轻量级国产PHP开发框架,诞生于2006年初,原名FCS,2007年元旦正式更名为ThinkPHP,遵循Apache2开源协议发布,从Struts结构移植过来并做了改进和完善,同时也借鉴了国外很多优秀的框架和模式,使用面向对象的开发结构和MVC模式,融合了Struts的思想和TagLib(标签库)、RoR的ORM映射和ActiveRecord模式。

ThinkPHP可以支持windows/Unix/Linux等服务器环境,正式版需要PHP5.0以上版本支持,支持MySql、PgSQL、Sqlite多种数据库以及PDO扩展,ThinkPHP框架本身没有什么特别模块要求,具体的应用系统运行环境要求视开发所涉及的模块。

作为一个整体开发解决方案,ThinkPHP能够解决应用开发中的大多数需要,因为其自身包含了底层架构、兼容处理、基类库、数据库访问层、模板引擎、缓存机制、插件机制、角色认证、表单处理等常用的组件,并且对于跨版本、跨平台和跨数据库移植都比较方便。并且每个组件都是精心设计和完善的,应用开发过程仅仅需要关注您的业务逻辑。

重要的概念

要掌握ThinkPHP,首先要了解其中的几个重要概念,对于熟悉Java开发的朋友,应该很容易理解下面的一些概念。

Action对象

和Struts框架的Action类似,Action对象主要提供应用逻辑的控制和处理,属于ThinkPHP的控制层,由核心的App类完成模块和操作的解析后直接转交给相应的Action对象处理。应用类中的所有Action对象都继承系统的Action基类。

Dao对象

是指DataAccessObject(数据访问对象),Dao设计模式把底层的数据访问逻辑和业务逻辑分开,夹在业务层与数据层中间,用于数据库访问和操作。可以针对单表和多表操作。ThinkPHP中的Dao对象属于建立在抽象数据库访问层之上的事务性对象。

VO对象

是指ValueObject(数据对象),更加精确的说是业务对象,因为VO对象是存活在业务层的,供业务逻辑使用的。VO对象和数据表存在一种映射关系,VO对象的每个属性对应数据表(或者视图)的一个字段,你完全可以添加其他非数据表字段的VO对象属性,以用于业务逻辑操作,例如关联字段。VO对象有个特殊的保留属性_info,是一个数组变量,用来保存该VO对象的一些特殊信息。和VO对象对应的概念还有PO(持久数据对象),VO和PO的概念都来自于O/RMapping(ObjectRelationalMapping,对象关系映射),PO只能用在数据层(也就是说PO对象的属性必须和数据表一一对应),VO用在业务逻辑层和表示层(可以有自己的额外属性)。各层操作属于该层自己的数据对象,这样就可以降低各层之间的耦合,便于以后系统的维护和扩展。如果将PO用在各个层中就相当于我们使用全局变量,我们知道在OO设计非常不赞成使用全局变量。

VoList对象

在ThinkPHP框架中,把查询后的数据集(ResultSet)转换成数据列表对象,也就是VOLIST对象,和ResultSet对象不同的是每个记录就相当于一个VO对象。在VOLIST对象中可以方便地遍历和操作VO对象。VO对象和VOLIST对象都属于ThinkPHP框架中的实体对象,是数据操作的基本元素。如果你在开发过程中没有使用Dao模式,而是通过数据库驱动类直接操作数据库,那么返回的是ResultSet对象。ThinkPHP系统提供了从ResultSet对象转换为VOLIST对象的方法。

组件和插件支持

基于角色的权限控制体系

企业级的应用是离不开安全保护的,ThinkPHP以基于Spring的Acegi安全系统作为参考原型,并做了简化,以适合目前的ThinkPHP结构,提供了一个多层的、可定制的安全体系来为应用开发提供安全控制。安全体系中主要有: 安全拦截器、认证管理器、决策访问管理器 、运行身份管理器。

以上就是ThinkPHP是软件框架吗的详细内容,更多请关注求知技术网其它相关文章!

文章来源:智云一二三科技

文章标题:ThinkPHP是软件框架吗

文章地址:https://www.zhihuclub.com/4752.shtml

关于作者: 智云科技

热门文章

评论已关闭

35条评论

  1. These factors together accounted for C max , indicating that exposure within an individual was reproducible from dose to dose

  2. If you encounter websites that you think are illegally selling medicine, please report unlawful sales Although specific interactions have not been studied, other CYP3A4 inhibitors, such as erythromycin, itraconazole, and grapefruit juice, would likely increase tadalafil exposure

  3. The article is designed as a review of published literature. What s great about using these two items together is that you re actually forming the most powerful protective barrier against estrogen, testosterone suppression and other adverse steroid-related side effects possible by using both products at once.

  4. Next, we sought to engineer an autoregulatory genetic modification that would allow the cells to independently regulate their response to exogenous cues that raise intracellular RUNX2 levels.

  5. You and your dentist can work out a dental treatment schedule that keeps your teeth healthy and minimizes your risk of osteonecrosis of the jaw 1 of total female cancer cases in Egypt

  6. It recounted that last week, WHO sent one of its most experienced emergency managers to head the WHO office in Monrovia

  7. This increased symptom burden contributed to inferior self reported health related quality of life in E 3193 Shark Cartilage letter 135, p

  8. A major Italian population study reported that the risk of breast cancer was reduced for increasing intake of flavones such as the apigenin and luteolin found in thyme

  9. For the same reason, the administration of sulfonamides to lactating women or premature infants should be avoided

  10. I love it when heГў s in there Гў weГў re never laid back in the outfield That sounds like a good payoff, but does she need it

  11. kytril viagra nzuri The nomination will put Yellen on course to be the first woman to lead the institution in its 100 year history

  12. There are many different types of psoriasis, but plaque psoriasis is most common, the Mayo Clinic says

  13. warfarin ondansetron odt dosage for toddler PayPal adds that one of the ways in which you will know the email is not from PayPal is when it uses a generic greeting like Dear user or Hello, PayPal member Clomid Clomiphene Citrate is an oral PCT produced by the Euro Pharmacies brand

  14. One study found 2, 4, 6 trichloroanisole in Mexican lime, French orange leaf, Spanish rue and Bulgarian rue oils, but concluded that it was probably of microbial rather than pesticidal origin Stoffelsma De Roos 1973

  15. saw palmetto increases toxicity of meloxicam by unspecified interaction mechanism By placing the needles at key energy meridians linked to the reproductive organs, Okoronkwo tells WebMD acupuncture increases, and more importantly, moves the flow of Qi from areas where it may be too abundant, to areas that are deficient, all in a direction that encourages fertility

  16. In cattle, differential diagnoses include insecticide and lead poisoning, polioencephalomalacia, hypomagnesemic tetany, and the nervous form of ketosis

  17. The ureterovesical junction UVJ is the area where the ureter the thin tube that drains urine from your kidney joins the bladder

  18. PubMed 8089958 sexy young malkes long distancxe cum shoot one forum 110470753 matfure milf xxxx do asian hafe bid diks

  19. Furthermore, preheparin LPL has been reported to be bound to postprandial TG rich lipoproteins such as remnants or IDLs in humans when ex vivo lipolytic activity is inhibited 291, 295

  20. At AFCC, our IVF success rates have been consistently higher than the national average for live birth rates for more than 20 years in a row

  21. Dennis Golden Prostate Cancer, Gleason Score 9, Surgery, Radiation Thyroxine increases the metabolism of cortisol and an unmet demand for glucocorticoid secretion may result in an Addisonian crisis

  22. In multivariate analysis for response, Bcar1 p130Cas was independent of classical predictive factors, such as estrogen receptor status, age menopausal status, disease free interval, and dominant site of relapse

  23. Honoraria Kyowa Kirin, Eisai, Novartis, Chugai Pharma, Taiho Pharmaceutical, AstraZeneca, Nihon Kayaku, Lilly Japan, Pfizer, Daiichi Sankyo

  24. 38 Peripartum Cardiomyopathy deterioration in cardiac function presenting typically between the last month of pregnancy and up to five months postpartum 2 people, 15

网站地图