上一页 1 ··· 7 8 9 10 11 12 13 下一页
摘要: yii2.0在浏览器中默认查看控制器下的方法是 http://ltbk.cn/index.php?r=login/login 要是在浏览器上输出 http://ltbk.cn/index.php/login/login就更加方便 下面解决方法: 1. 打开config目录下的web.php,在$co 阅读全文
posted @ 2017-03-29 17:10 py卡卡 阅读(151) 评论(0) 推荐(0) 编辑
摘要: 想要将域名绑定并且在本地浏览器上可以通过此域名浏览 解决办法: 1. 配置 apache\conf\extra\httpd-vhosts.conf 可以复制一条 <VirtualHost *:80> ServerAdmin webmaster@dummy-host.example.com ##可以不 阅读全文
posted @ 2017-03-29 16:40 py卡卡 阅读(137) 评论(0) 推荐(0) 编辑
摘要: yii\web\Request::cookieValidationKey must be configured with a secret key. 出现的错误表示没有设置 cookieValidationKey 解决方法: 打开 basic\config\web.php 设置代码如下 阅读全文
posted @ 2017-03-29 16:25 py卡卡 阅读(1950) 评论(0) 推荐(0) 编辑
摘要: 命令行 :ipconfig -flushdns 阅读全文
posted @ 2017-03-27 10:23 py卡卡 阅读(186) 评论(0) 推荐(0) 编辑
摘要: <div class="col-sm-9"> <select id="device-type" class="form-control" name="Device[type]"> <option value="0">请选择设备类型</option> <option value="3">低压出线柜</ 阅读全文
posted @ 2017-03-13 15:58 py卡卡 阅读(1344) 评论(0) 推荐(0) 编辑
摘要: <div id="k">测试</div><script>setTimeout("document.getElementById('k').style.display='none'",5000);</script> 阅读全文
posted @ 2017-03-07 17:06 py卡卡 阅读(1181) 评论(0) 推荐(0) 编辑
摘要: getErrors('province_id') || $model->getErrors('city_id') || $model->getErrors('district_id')):?>has-errorhas-success"> 配电室所在地区 '请选择省份'], Area::getArrayForInput(0)), ['cl... 阅读全文
posted @ 2017-03-07 14:29 py卡卡 阅读(202) 评论(0) 推荐(0) 编辑
摘要: <html xmlns="http://www.w3.org/1999/xhtml"><head> <title>根据地址查询经纬度</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <script 阅读全文
posted @ 2017-03-07 14:17 py卡卡 阅读(305) 评论(0) 推荐(0) 编辑
摘要: 第一种方式:采用model 1. 模型:Code.php <?phpnamespace app\models; use yii\base\Model;class Code extends Model{ public $code;//添加的验证码字段 public function rules() { 阅读全文
posted @ 2017-03-06 09:54 py卡卡 阅读(1097) 评论(0) 推荐(0) 编辑
摘要: 1 HTML: 2 3 4 "> 5 6 "> 7 查询 8 9 10 11 控制器的查询条件: 12 $data = Concentrator::find()->andWhere(['in', 'id', $cIds]); 13 if ($_GET['name']) ... 阅读全文
posted @ 2017-02-28 16:23 py卡卡 阅读(2005) 评论(0) 推荐(0) 编辑
上一页 1 ··· 7 8 9 10 11 12 13 下一页