摘要: install PHP7 1. 安装环境支持 2. 安装上传组件 3.下载安装包 http://cn2.php.net/get/php 7.2.4.tar.gz/from/this/mirror 注意: 选择中文版本!!! 把 ini拷贝到对应目录 安装 Swoole 先准备组件 然后进入编译安装 阅读全文
posted @ 2018-04-26 15:31 且聽风吟 阅读(785) 评论(0) 推荐(0) 编辑
摘要: ``` $val) $string[$key] = new_addslashes($val); return $string; } /** * 返回经stripslashes处理过的字符串或数组 * @param $string 需要处理的字符串或数组 * @return mixed */ function new_stripslashes($string) { if... 阅读全文
posted @ 2017-09-19 15:01 且聽风吟 阅读(350) 评论(0) 推荐(0) 编辑
摘要: 建立Gii的 CRUD 先查看是否开发环境,增加自己的IP地址 其次数据库建立个新表 / show CREATE table posts / CREATE TABLE ( int(11) NOT NULL AUTO_INCREMENT, varchar(100) NOT NULL, text NOT 阅读全文
posted @ 2017-07-20 16:11 且聽风吟 阅读(254) 评论(0) 推荐(0) 编辑
摘要: 用户登录控制 以下是引入方法. 引入登录控制类 设置类的属性和对应方法 备注: 另外侧重讲解了下面的几个方法实现 create /update /view /del 从第四分钟开始看 阅读全文
posted @ 2017-07-20 16:11 且聽风吟 阅读(344) 评论(0) 推荐(0) 编辑
摘要: 数据库新建表users / show create table tablename / CREATE TABLE ( int(11) NOT NULL AUTO_INCREMENT, varchar(100) NOT NULL, varchar(32) NOT NULL, PRIMARY KEY ( 阅读全文
posted @ 2017-07-20 16:10 且聽风吟 阅读(187) 评论(0) 推荐(0) 编辑
摘要: 在SiteController.php中設置方法 新建一個模型類 Three.php 注意 没反应的情况和 model中的rule格式有关系 ~~浪费我半小时~~ 阅读全文
posted @ 2017-07-20 16:07 且聽风吟 阅读(230) 评论(0) 推荐(0) 编辑