thinkphp的一些类库

本文深入探讨了ThinkPHP框架的核心类库,包括Core、Db、Exception、Template和Util等,详细介绍了每个类库的功能和作用,为开发者提供了一个全面的理解框架。

+----------------------------------------------------------------------------------------+
tp的类型的使用

基类库:
+----------------------------------------------------------------------------------------+
Core:核心类库
Db:数据库类库包
Exception:异常处理类库包
Template:内置模板引擎类库包
Util:系统工具类库包
+----------------------------------------------------------------------------------------+
Corl核心类库:
1.Think.class.php===>系统基类
2.App.class.php---应用程序类,执行应用管理
3.Action.class.php    控制器类
4.Model.class.php    模型基类
5.Model/AdvModel.class.php    高级模型类
6.Model/viewModel.class.php    视图模型类
7.Log.class.php    日志处理类
8.View.class.php   视图输出类

Db数据库核心

Db.class.php    mysql数据库驱动类


Exception异常处理类库
Exception异常处理类,只包含ThinkException.class.php系统异常基类.

Template内置模版引擎类库:
ThinkTemplat.class.php:内置模版引擎类
2.TagLib.class.php标签类基类
3.TagLib/TagLibCx.class.php    cs标签库解析类
4.TagLib/TagLibHtml.class.php    HTML标签解析类

Util系统工具类:
Util系统工具类库包提供了系统开发中的一些基本的工具,具体的包括:
1.Behavior.class.php        行为扩展类
2.Cache.class.php        缓存管理类
3.Cookie.class.php        Cookie管理类
4.Debug.class.php        系统调试类
5.HtmlCache.class.php        静态缓存类
6.Dispatcher.class.php        URL解析/路由和调度管理类
7.Session.class.php        session管理类
8.Widget.class.php        插件应用类
9.Cache/:        各类型的缓存类文件目录,包括:文件缓存类,sqlite缓存类,Apachenote缓存类,Memcache类,Xcache缓存类,数据库类型缓存类
10.Template/:模版引擎解析类目录,包含:EaseTemplate模版引擎缓存类,TemplateLite模版引擎缓存类,Smarty类,Think模版引擎解析类.

转载于:https://www.cnblogs.com/sgsheg/archive/2012/09/22/2698293.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值