随笔分类 -  php

摘要://返回json数据给js function json_output($err_code = 0 , $error_message = '' , $data = [] , $redirect = '',$jsonp = FALSE){ $ret = array( 'error_code' => $err_code, 'error_message' => $error_messa... 阅读全文
posted @ 2016-11-11 15:00 xyyphp 阅读(180) 评论(0) 推荐(0)
摘要:调用方式: $header = self::getHeader(); $data = self::postUrl($url, $header); /** * 组合Header * @return type */ protected static function getHeader() { retu 阅读全文
posted @ 2016-11-11 10:44 xyyphp 阅读(310) 评论(0) 推荐(0)
摘要:/** * 跳转 * @param type $msg * @param type $url */ protected function jump($msg, $url) { $html = 提示 {$msg} 3 秒后自动跳转,如不跳转,请点击:{$msg} ... 阅读全文
posted @ 2016-11-03 11:23 xyyphp 阅读(344) 评论(0) 推荐(0)
摘要:setEachDisNums(50);//设置每页显示多少条(可选) $limit = $subPages->getLimit();//生成用于sql的limit参数格式: 0,20 $show_pages = $subPages->show_SubPages();//显示分页 */ class SubPages{ private $each_disN... 阅读全文
posted @ 2016-10-12 18:15 xyyphp 阅读(507) 评论(0) 推荐(0)
摘要:授权获取二维码类: 调取实例: 阅读全文
posted @ 2016-10-12 14:31 xyyphp 阅读(8759) 评论(0) 推荐(0)
摘要:<?php /** * 对Yii2数据封装 * @author nike@youfumama.com * @date 2017-03-08 * 抽象类不能被实例化 * eg1: select use common\models as b_model; $users_model = b_model\F 阅读全文
posted @ 2016-10-12 13:52 xyyphp 阅读(359) 评论(0) 推荐(0)