Home > php教程 > php手册 > body text

归纳总结Thinkphp 中的内置函数

WBOY
Release: 2018-10-24 15:46:57
forward
1632 people have browsed it

这篇文章主要介绍了Thinkphp 中的内置函数,有一定的参考价值,感兴趣的朋友可以看看,希望对你有所帮助!

A函数: 用于实例化Action 格式:[项目://][分组/]模块

A($name,$layer='',$common=false)

B函数: 执行某个行为

B($name, &$params=NULL)

C函数: 获取和设置配置参数 支持批量定

C($name=null, $value=null)

D函数: 用于实例化Model 格式 项目://分组/模块

D($name='',$layer='')

F函数: 快速文件数据读取和保存 针对简单类型数据 字符串、数组

F($name, $value='', $path=DATA_PATH)

G函数: 记录和统计时间(微秒)和内存使用情况

G($start,$end='',$dec=4)

I函数: 获取输入参数 支持过滤和默认值

I($name,$default='',$filter=null)

L函数: 获取和设置语言定义(不区分大小写)

L($name=null, $value=null)

M函数: 用于实例化一个没有模型文件的Model

M($name='', $tablePrefix='',$connection='')

N函数: 设置和获取统计数据

N($key, $step=0,$save=false)

R函数: 远程调用模块的操作方法 URL 参数格式 [项目://][分组/]模块/操作

R($url,$vars=array(),$layer='')

S函数: 缓存管理

S($name,$value='',$options=null)
T函数: 获取模版文件 格式 项目://分组@主题/模块/操作

T($template='',$layer='')

U函数: URL组装 支持不同URL模式

U($url='',$vars='',$suffix=true,$redirect=false,$domain=false)

W函数: 渲染输出Widget

W($name, $data=array(), $return=false,$path='')

【相关教程推荐】

1. php编程从入门到精通全套视频教程 

2. php从入门到精通  

3. bootstrap教程 

Related labels:
source:csdn.net
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!