上一页 1 ··· 7 8 9 10 11 12 13 下一页
摘要: 想要将域名绑定并且在本地浏览器上可以通过此域名浏览 解决办法: 1. 配置 apache\conf\extra\httpd-vhosts.conf 可以复制一条 <VirtualHost *:80> ServerAdmin webmaster@dummy-host.example.com ##可以不 阅读全文
posted @ 2017-03-29 16:40 py卡卡 阅读(135) 评论(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卡卡 阅读(1940) 评论(0) 推荐(0) 编辑
摘要: 命令行 :ipconfig -flushdns 阅读全文
posted @ 2017-03-27 10:23 py卡卡 阅读(185) 评论(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卡卡 阅读(1339) 评论(0) 推荐(0) 编辑
摘要: <div id="k">测试</div><script>setTimeout("document.getElementById('k').style.display='none'",5000);</script> 阅读全文
posted @ 2017-03-07 17:06 py卡卡 阅读(1176) 评论(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卡卡 阅读(199) 评论(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卡卡 阅读(299) 评论(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卡卡 阅读(1080) 评论(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卡卡 阅读(1965) 评论(0) 推荐(0) 编辑
摘要: $this->redirect(['default/error']); Yii::$app->end();上边的代码出现 Calling unknown method: app\modules\mobile\controllers\CompanyController::redirect()错误时,查 阅读全文
posted @ 2017-02-27 11:34 py卡卡 阅读(647) 评论(0) 推荐(0) 编辑
上一页 1 ··· 7 8 9 10 11 12 13 下一页