上一页 1 ··· 5 6 7 8 9

yii2 droplist sql语句获取数组

摘要: $data = \api\models\Banner::find()->select("name,id")->indexBy("id")->column();如: <?= $form->field($model, 'banner_id')->dropDownList(\api\models\Bann 阅读全文
posted @ 2018-08-02 10:51 少杨 阅读(185) 评论(0) 推荐(0)

yii 添加数据时 有默认值 就赋值默认值

摘要: 修改 /yiisoft/yii2/db/ColumnSchema.php 的128 行的 return null ;修改为下面 阅读全文
posted @ 2018-07-03 09:54 少杨 阅读(214) 评论(0) 推荐(0)

linux php 编译安装

摘要: ./configure --prefix=/usr/local/php5.2 --with-mysql=/usr/local/mysql --with-mysqli=/usr/local/mysql/bin/mysql_config --with-pdo-mysql=/usr/local/mysql 阅读全文
posted @ 2018-06-05 11:55 少杨 阅读(231) 评论(0) 推荐(0)

qt mp3 播放

摘要: .pro 添加QT += phonon.cpp 添加#include <Phonon/AudioOutput>#include <Phonon/MediaObject> Phonon::MediaObject *mediaObject = new Phonon::MediaObject(this); 阅读全文
posted @ 2018-05-14 13:21 少杨 阅读(271) 评论(0) 推荐(0)

qt http 请求乱码

摘要: 转换函数 QString str; QString str = QString::fromUtf8(str.toLatin1()); *********************************开始.pro 添加 QT += network.h 添加 #include <QNetworkRep 阅读全文
posted @ 2018-05-14 11:48 少杨 阅读(566) 评论(0) 推荐(0)

redis 操作指令

摘要: help @string #列出所有操作字符串的命令 help @list @set @sorted_set @hash help get #列出个命令 给redis 设置 密码 500 # requirepass foobared auth 密码 info 当前的信息help @serverkey 阅读全文
posted @ 2018-04-29 15:08 少杨 阅读(109) 评论(0) 推荐(0)

yii2 GridView 分类筛选给默认值 prompt

摘要: <?= GridView::widget([ 'dataProvider' => $dataProvider, 'filterModel' => $searchModel, 'columns' => [ 'id', ['attribute'=>'cid', 'value'=>function($mo 阅读全文
posted @ 2018-04-25 17:49 少杨 阅读(427) 评论(0) 推荐(0)

vmware centos 共赏目录不显示

摘要: 按照 vmware tools vmware 共赏目录不显示 /mnt/hgfs 没有共赏目录 1. yum install open-vm-tools 2. vmhgfs-fuse .host:/ /mnt/hgfs -o subtype=vmhgfs-fuse,allow_other 如果ngi 阅读全文
posted @ 2018-04-10 17:34 少杨 阅读(198) 评论(0) 推荐(0)

php-fpm 和 nginx nginx配置

摘要: php-fpm 和 nginx 配置好,总是报错 把 lib/php.ini 的ui.so 的扩展 去掉 ,就正常了,(有这样的经历(我安装了ui扩展),哈哈) location ~ .php$ { root html; fastcgi_pass 127.0.0.1:9000; fastcgi_in 阅读全文
posted @ 2017-12-19 22:54 少杨 阅读(151) 评论(0) 推荐(0)

deepin 安装mysql

摘要: /wwwRoot/mysql/wwwRoot/mysql官网 https://dev.mysql.com/doc/refman/5.7/en/binary-installation.html 安装资料 shell> apt-cache search libaio # search for infos 阅读全文
posted @ 2017-12-17 12:09 少杨 阅读(1420) 评论(0) 推荐(0)
上一页 1 ··· 5 6 7 8 9