摘要: $customer=new Customer();//插入操作$customer->name='小熊';$customer->save();//修改操作$model=Customer::findOne(1);$model->name='小洋';$model->save();/* ----------... 阅读全文
posted @ 2014-08-27 16:13 叫我小洋 阅读(1039) 评论(0) 推荐(0) 编辑

摘要: SCP传送文件:scp -P 22022 -i /root/.ssh/aaa.pem file.txt root@111.111.111.111:/var/www/wpvirusdata --------把文件从本地上传到服务器复制文件:cp path_a path_b; //将路径A文件 复制到B... 阅读全文
posted @ 2014-06-06 01:32 叫我小洋 阅读(364) 评论(0) 推荐(0) 编辑

摘要: 边框 css 基本设置:border:1px solid #d2d2d2; 风格有:solid=>实线 double=>双实线 dotted=>点状 dashed=>虚线 圆角 border-radius: 10px;文字居中 vertical-align:mid... 阅读全文
posted @ 2014-05-16 11:00 叫我小洋 阅读(151) 评论(0) 推荐(0) 编辑

2019年4月28日

该文被密码保护。 阅读全文
posted @ 2019-04-28 13:24 叫我小洋 阅读(5) 评论(0) 推荐(0) 编辑

2016年1月11日

摘要: ln -s a b 中的 a 就是源文件,b是链接文件名,其作用是当进入b目录,实际上是链接进入了a目录如上面的示例,当我们执行命令 cd /gamestat/的时候 实际上是进入了 /home/gamestat/ 值得注意的是执行命令的时候,应该是a目录已经建立,目录b没有建立。我最开始操作的是也把b目录给建立了,结果就不对了 删除软链接: rm -rf b 注意不是rm -rf ... 阅读全文
posted @ 2016-01-11 17:10 叫我小洋 阅读(46934) 评论(0) 推荐(0) 编辑

2015年12月25日

摘要: 原因crontab默认的 path 设置和系统自身的有区别git 命令放在 /usr/local/bin/ 目录 whereis git而crontab 却在 /sbin:/bin:/usr/sbin:/usr/bin解决办法以下是crontab实例git pull 修改成 /usr/local/bin/git pull#礼拜一到礼拜六的8-22点每分钟更新 update_web.... 阅读全文
posted @ 2015-12-25 10:31 叫我小洋 阅读(1025) 评论(0) 推荐(0) 编辑

2015年12月24日

摘要: field( $model, 'unit_id', [ 'inputOptions' => [ 'class' => 'required', ... 阅读全文
posted @ 2015-12-24 17:12 叫我小洋 阅读(361) 评论(0) 推荐(0) 编辑
摘要: where() public methodSets the WHERE part of the query.The method requires a $condition parameter, and optionally a $params parameter specifying the values to be bound to the query.The $condition param... 阅读全文
posted @ 2015-12-24 17:11 叫我小洋 阅读(570) 评论(0) 推荐(0) 编辑
摘要: $query=$sql->where([ 'test_id'=>24, 'name'=>'小洋' ]);//打印sql;$query->prepare(Yii::$app->db->queryBuilder)->createCommand... 阅读全文
posted @ 2015-12-24 17:10 叫我小洋 阅读(175) 评论(0) 推荐(0) 编辑
摘要: $sql_tmp= "UPDATE `eabc_order_detail` set send_number=num where order_sn='".$model_order->order_sn."'";Yii::$app->db->createCommand($sql_tmp)->execute();来自为知笔记(Wiz) 阅读全文
posted @ 2015-12-24 17:09 叫我小洋 阅读(285) 评论(0) 推荐(0) 编辑
摘要: $loginForm = new UserForm(['scenario' => 'login2']); $loginForm->load(Yii::$app->request->post()); $loginForm->validate(); $loginForm->log... 阅读全文
posted @ 2015-12-24 17:08 叫我小洋 阅读(211) 评论(0) 推荐(0) 编辑
摘要: yii2 框架定义的约束 public $builtInValidators = [ 'boolean' => 'yii\validators\BooleanValidator', 'captcha' => 'yii\captcha\CaptchaValidator', 'compare' => 'yii\validators\CompareVa... 阅读全文
posted @ 2015-12-24 17:07 叫我小洋 阅读(12105) 评论(0) 推荐(0) 编辑
摘要: $insertNum=\Yii::$app->db->createCommand()->batchInsert('{{%join_relation}}',['real_name','status','seller_muser_id','buyer_muser_id','opera_time'],$arrJoin)->execute(); if($insertNum!=... 阅读全文
posted @ 2015-12-24 17:07 叫我小洋 阅读(304) 评论(0) 推荐(0) 编辑

导航