摘要: 1 layout = false;//去掉头部和尾部 20 $model = new Admin; 21 if ( Yii::$app->request->isPost ) {//如果是post请求 22 $post = Yii::$app->request->post();//接收post请求 23 if (... 阅读全文
posted @ 2017-05-31 22:47 zhoupufelix的博客 阅读(324) 评论(0) 推荐(0) 编辑
摘要: 一利用gii 生成后台模块 1.开启gii 在config\web.php 中 2.通过浏览器地址访问 www.yii.com/index.php?r=gii 3.点击模块创建 4.在配置文件中加载 5.创建完新增目录如图所示 6.路由访问 www.yii.com/index.phpr=admin/ 阅读全文
posted @ 2017-05-31 22:23 zhoupufelix的博客 阅读(171) 评论(0) 推荐(0) 编辑
摘要: 1 ".str_rev_gb($str1).""; 34 echo $str2."->".str_rev_gb($str2).""; 35 echo $str3."->".str_rev_gb($str3).""; 36 echo $str4."->".str_rev_gb($str4).""; 阅读全文
posted @ 2017-05-11 10:03 zhoupufelix的博客 阅读(2366) 评论(0) 推荐(0) 编辑
摘要: 1 $arr[$j] ) { 10 //交换 11 $temp = $arr[$j-1]; 12 $arr[$j-1] = $arr[$j]; 13 $arr[$j] = $temp; 14 15 1... 阅读全文
posted @ 2017-05-10 14:58 zhoupufelix的博客 阅读(104) 评论(0) 推荐(0) 编辑
摘要: 1、brew search nginx 2、brew install nginx 启动nginx ,sudo nginx ;访问localhost:8080 发现已出现nginx的欢迎页面了。备注: ln -s /usr/local/sbin/nginx /usr/bin/nginx 做个软连接。常 阅读全文
posted @ 2017-05-10 11:56 zhoupufelix的博客 阅读(181) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2017-05-05 11:33 zhoupufelix的博客 阅读(1) 评论(0) 推荐(0) 编辑
摘要: 1 'zhangsan','age'=>26,'gender'=>'male','height'=>180), 5 array('name'=>'zhangsan','age'=>21,'gender'=>'female','height'=>156), 6 array('name'=>'zhangsan','age'=> 阅读全文
posted @ 2017-05-04 18:07 zhoupufelix的博客 阅读(208) 评论(0) 推荐(0) 编辑
摘要: http://www.cnblogs.com/xys1228/p/6288869.html 阅读全文
posted @ 2017-04-20 17:46 zhoupufelix的博客 阅读(88) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2017-04-20 17:27 zhoupufelix的博客 阅读(4) 评论(0) 推荐(0) 编辑
摘要: 前台js 后台代码 阅读全文
posted @ 2017-04-18 14:06 zhoupufelix的博客 阅读(232) 评论(0) 推荐(0) 编辑