上一页 1 ··· 4 5 6 7 8 9 10 11 12 下一页
摘要: /* * wechat php test */ //define your token define("TOKEN", "weixin"); $wechatObj =new WechatCallbackapiT... 阅读全文
posted @ 2015-09-02 13:23 开源 阅读(480) 评论(0) 推荐(0)
摘要: /* * wechat php test */ //define your token define("TOKEN", "weixin"); $wechatObj =new WechatCallbac... 阅读全文
posted @ 2015-09-02 12:32 开源 阅读(446) 评论(0) 推荐(0)
摘要: /** * 写日志,方便测试(看网站需求,也可以改成把记录存入数据库) * 注意:服务器需要开通fopen配置 * @param $word 要写入日志里的文本内容 默认值:空值 ... 阅读全文
posted @ 2015-09-02 12:28 开源 阅读(127) 评论(0) 推荐(0)
摘要: $timestamp = $_GET['timestamp'];$nonce =$_GET['nonce'];$token ='weixin';$signature = $_GET["signature"];... 阅读全文
posted @ 2015-09-02 12:26 开源 阅读(183) 评论(0) 推荐(0)
摘要: 在composer.json 文件里添加 如下 (extra括号里的部分)代码: "extra": {"asset-installer-paths": {"npm-asset-library": "vendor/... 阅读全文
posted @ 2015-06-23 09:26 开源 阅读(188) 评论(0) 推荐(0)
摘要: 无限极分类的展示: 1.要建立数据库表CREATE TABLE `menu` (`id` int( 11) NOT NULL AUTO_INCREMENT COMMENT 'id', `sort_id` int... 阅读全文
posted @ 2015-06-12 11:26 开源 阅读(290) 评论(0) 推荐(0)
摘要: 要增加 UNIQUE 的話 ALTER TABLE `你的表` ADD UNIQUE (`f_date`) 要刪除的話ALTER TABLE `你的表 ` DROP INDEX `f_date`要添加外键约束A... 阅读全文
posted @ 2015-06-12 11:25 开源 阅读(117) 评论(0) 推荐(0)
摘要: 1.修改layouts/main.php文件 #code ... #code ... ... 阅读全文
posted @ 2015-06-12 11:23 开源 阅读(257) 评论(0) 推荐(0)
摘要: 根据sql查询$sql ="select * from test where id = 1" ;Test ::findBySql ($sql) ->all(); 根据sql查询,防止sql注入$sql ="sel... 阅读全文
posted @ 2015-06-12 11:22 开源 阅读(136) 评论(0) 推荐(0)
摘要: 不带参数跳转到views/index.phpreturn $this ->renderPartial( 'index.php'); 带参数跳转到 views/index.php$hello ='hello wor... 阅读全文
posted @ 2015-06-12 11:22 开源 阅读(602) 评论(0) 推荐(0)
上一页 1 ··· 4 5 6 7 8 9 10 11 12 下一页