会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
blockphp
好好学习,天天向上
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
10
11
12
13
14
15
下一页
2018年4月28日
使用微信共众号 提供网页登陆接口
摘要: 一、如何开通微信公众号、微信开发平台、授权认证、接口权限申请等等,这些不在本文描述,请参考官方资料。 二、假设已顺利完成第一步的工作,现在需要在自己开发的网站(PC端、移动端,注意两者略有不同,下文有描述)接入微信登录功能。 三、接入之前,首先要理解使用微信登录的常有的两种应用场景: 场景1、只限于
阅读全文
posted @ 2018-04-28 14:20 我是谁,我在做什么
阅读(469)
评论(0)
推荐(1)
2018年4月16日
destoon数据库表说明汇总如下
摘要: 表名 注释destoon_404 404 日志 destoon_ad 广告 destoon_ad_place 广告位destoon_admin 管理员destoon_admin_log 管理日志destoon_alert 贸易提醒 destoon_announce 公告destoon_area 地区
阅读全文
posted @ 2018-04-16 16:29 我是谁,我在做什么
阅读(266)
评论(0)
推荐(0)
destoon 配置文件config.inc.php参数说明
摘要: $CFG['db_host']数据库服务器,可以包括端口号,一般为localhost$CFG['db_user']数据库用户名,一般为root$CFG['db_pass']数据库密码$CFG['db_name']数据库名称$CFG['db_charset']数据库连接字符集$CFG['databas
阅读全文
posted @ 2018-04-16 11:05 我是谁,我在做什么
阅读(169)
评论(0)
推荐(0)
destoon二次开发流量
摘要: halt = (DT_DEBUG || IN_ADMIN) ? 1 : 0; $db->pre = $CFG['tb_pre']; $db->connect($CFG['db_host'], $CFG['db_user'], $CFG['db_pass'], $CFG['db_name'], $CFG['db_expires'], $CFG['db_charset'], $CFG['pcon...
阅读全文
posted @ 2018-04-16 10:53 我是谁,我在做什么
阅读(116)
评论(0)
推荐(0)
thinkphp5 数据类型的转换
摘要:
阅读全文
posted @ 2018-04-16 00:01 我是谁,我在做什么
阅读(368)
评论(0)
推荐(0)
2018年4月15日
thinkphp5 模型读取器和修改器
摘要: 方法 public function index() { $ad = Destoon_ad::get(2); return $ad->totime; } 模型下创建读取器 protected function getTotimeAttr($totime){ return date('Y-m-d',$
阅读全文
posted @ 2018-04-15 20:56 我是谁,我在做什么
阅读(155)
评论(0)
推荐(0)
thinkphp5 模型的 删作操作
摘要: delete()方法 $result = Destoon_ad::get(['aid'=>['=',17]]); dump($result->delete()); destroy()方法 public function index() { $where = function($query){ $qu
阅读全文
posted @ 2018-04-15 20:34 我是谁,我在做什么
阅读(115)
评论(0)
推荐(0)
thinkphp5 模型的 查询操作
摘要: public function index() { //模型实列化调用get()和find()方法 $ad = new Destoon_ad; $where = function($query){ $query->field(['pid','url'])->where('aid',1); }; $r
阅读全文
posted @ 2018-04-15 20:06 我是谁,我在做什么
阅读(286)
评论(0)
推荐(0)
thinkphp5 模型的 更新操作
摘要: public function index() { $ad = new Destoon_ad(); $data=[ 'url'=>'www.baidu.com', 'pid'=>'6666' ]; $where = ['aid'=>1]; $ad->save($data,$where); dump(
阅读全文
posted @ 2018-04-15 19:26 我是谁,我在做什么
阅读(230)
评论(0)
推荐(0)
thinkphp5 模型的 新增操作
摘要: 添加操作 public function index() { //1.实列化模型,创建模型对象 $ad = new Destoon_ad(); //2.创建数据,采用对象方式 $ad->pid = '666'; $ad->url = 'www.666.com'; //3.执行添加操作 $result
阅读全文
posted @ 2018-04-15 18:39 我是谁,我在做什么
阅读(165)
评论(0)
推荐(0)
上一页
1
···
10
11
12
13
14
15
下一页
公告