大飞_dafei

导航

上一页 1 ··· 32 33 34 35 36 37 38 39 40 ··· 49 下一页

2018年12月13日 #

yii2 config_02

摘要: 1. 前端资源, Yii2 前端资源管理 'components' => [ 'assetManager' => [//资源管理 'bundles' => [ 'yii\bootstrap\BootstrapAsset' => false,//禁用 Twitter Bootstrap 框架的 CSS 阅读全文

posted @ 2018-12-13 10:21 大飞_dafei 阅读(93) 评论(0) 推荐(0) 编辑

2018年12月3日 #

vagrant box --ubuntu18 打包后,使用box 报错

摘要: vagrant box --ubuntu18 打包后,使用box 报错 解决方案: 修改vagrantfile config.vm.provider "virtualbox" do |v| #v.memory = 4096 #v.cpus = 4 # Basebox ubuntu/xenial64 阅读全文

posted @ 2018-12-03 15:43 大飞_dafei 阅读(109) 评论(0) 推荐(0) 编辑

2018年11月28日 #

Oracle VM VirtualBox 虚拟机中桥接模式一直不能用 ,需要安装 VBoxNetLwf.inf

摘要: Oracle VM VirtualBox 虚拟机中桥接模式一直不能用 ,需要安装 VBoxNetLwf.inf ............\VirtualBox\drivers\network\netlwf\VBoxNetLwf.inf 文件位置 阅读全文

posted @ 2018-11-28 01:23 大飞_dafei 阅读(637) 评论(0) 推荐(0) 编辑

2018年11月26日 #

Windows7窗口跑到屏幕外面

摘要: Windows7窗口跑到屏幕外面 1) 打开应用 2) Alt + 空格 ; '按下键盘的 m 键, 然后一种用箭头左右控制就可以 阅读全文

posted @ 2018-11-26 11:58 大飞_dafei 阅读(221) 评论(0) 推荐(0) 编辑

2018年11月25日 #

Yii2 layout 由 controller 向layout中传递参数值

摘要: Yii2 layout 由 controller 向layout中传递参数值 // controller public function actionIndex() { Yii::$app->view->params['model'] = "hello world"; return $this->r 阅读全文

posted @ 2018-11-25 14:24 大飞_dafei 阅读(180) 评论(0) 推荐(0) 编辑

2018年11月24日 #

Yii2 中 checkboxlist 复选框 默认选中

摘要: Yii2 中 checkboxlist 复选框 默认选中问题 方法1: 在 controller 中 model->字段 = 值; 比如: $model->type= 1; 方法2: <?= $form->field($model, 'type')->checkboxlist([ 1 => 'ite 阅读全文

posted @ 2018-11-24 22:04 大飞_dafei 阅读(407) 评论(0) 推荐(0) 编辑

2018年11月16日 #

centos 搭建redis主从

摘要: centos 搭建redis主从 !!! 由于这是在虚拟机中做的测试,配置过程中可能出现错误,记得看日志 查看主从信息: info replication 搭建主从确保,两台服务器直接可以连通, ping 连接ok, redis 互相可以登录 redis 主: 192.168.56.3 redis 阅读全文

posted @ 2018-11-16 16:03 大飞_dafei 阅读(83) 评论(0) 推荐(0) 编辑

2018年11月13日 #

php 魔术方法 __call

摘要: __call 魔术方法 //文件名字__call (自己随便起名字) /** * 在对象中调用一个不可访问方法时,__call() 会被调用。 * * 在静态上下文中调用一个不可访问方法时,__callStatic() 会被调用。 * * $name 参数是要调用的方法名称。$arguments 参 阅读全文

posted @ 2018-11-13 15:07 大飞_dafei 阅读(106) 评论(0) 推荐(0) 编辑

2018年11月9日 #

vargrant 安装 CentOS-7-x86_64

摘要: vargrant 安装 CentOS-7-x86_64 安装 vagrant , 安装 box 这里不再写,网上教程很多 1). yum install vim 2). yum install net-tools # 可以使用 ifconfig 3). 安装完centos,安装nginx: yum 阅读全文

posted @ 2018-11-09 17:09 大飞_dafei 阅读(328) 评论(0) 推荐(0) 编辑

MyISAM与innoDB存储引擎有何差别

摘要: A、两者在文件构成上有区别; B、InnoDB支持事务处理,MyISAM不支持; C、对无WHERE子句的COUNT(*)操作的不同:MyISAM中保存了该值,直接读取,InnoDB需要作全表扫描; D、锁的区别:InnoDB支持表级锁和行级锁,MyISAM只支持表级锁; E、索引会缓存数据,而MY 阅读全文

posted @ 2018-11-09 00:35 大飞_dafei 阅读(88) 评论(0) 推荐(0) 编辑

上一页 1 ··· 32 33 34 35 36 37 38 39 40 ··· 49 下一页