thinkphp.3.2 公共函数common 使用

浏览:7843 发布日期:2015/11/18 分类:技术分享 关键字: common
在应用模块下 common文件夹
新建 function.php
自定义 类
如 class wechat{
function test(){
echo "test";
}
}

控制器 内直接调用
如 $a=new /wechat
$a->test;

输出: test
最佳答案
评论( 相关
后面还有条评论,点击查看>>