摘要: Question: mac上本来已经安装了php5.5,然后想用brew安装一个composer,因此又用brew安装了一个php5.4。安装后发现在/usr/local/bin中的php会发生矛盾。Answer: 使用brew安装的php5.4可以使用brew info php54查看,主要路径... 阅读全文
posted @ 2015-05-10 14:02 jolin_blog 阅读(217) 评论(0) 推荐(0) 编辑
摘要: 需要实现的效果:点击按钮后,分别调用三个接口更新数据,数据更新完之后刷新当前页面。(实现方式未必是最好的,此处只关注ajax的异步设置)一般情况下使用 $.ajax() 是异步处理的,三个ajax请求分别发送后,可以在未有response返回的情况下继续执行下面reload()页面的代码设置 asy... 阅读全文
posted @ 2014-06-01 17:40 jolin_blog 阅读(280) 评论(0) 推荐(1) 编辑
摘要: 测试系统包括: CentOS 6.4, CentOS 5.9, ArchLinuxCentOS 5.9: 准备: 安装 Yum 的扩展源: EPEL: https://fedoraproject.org/wiki/EPEL#How_can_I_use_these_extr... 阅读全文
posted @ 2014-04-09 17:18 jolin_blog 阅读(2834) 评论(0) 推荐(0) 编辑
摘要: 具体配置,请参考Yii文档中的内容: 1 widget('zii.widgets.CDetailView', array( 3 'data'=>$model, 4 'attributes'=>array( 5 'cn_content', 6 /*下面的数组设置的效果和上面的单一个字符串是一样的,但是type=raw可以配置更多的html效果*/ 7 array( 8 'label'=>'中文正文内容', 9 'type'=>'raw'... 阅读全文
posted @ 2014-04-04 00:17 jolin_blog 阅读(350) 评论(0) 推荐(0) 编辑
摘要: 以CHtml::link()作为例子,htmlOptions(array)属性中已经封装好了相应程序,可在页面快速js和ajax: 1 完成工作", //string 4 array(), //超链接地址href 5 array( 6 'style'=>'color:red', 7 'submit'=>array("/wos0001/complete","id"=>$data->id), 8 'confirm'=>'任务是否已经完成?' 阅读全文
posted @ 2014-04-04 00:15 jolin_blog 阅读(349) 评论(0) 推荐(1) 编辑
摘要: 官方源路径:Server = http://mirror.archlinuxarm.org/$arch/$repo官方的国内源路径:## China#Server = http://mirrors.163.com/archlinux/$repo/os/$arch#Server = http://mirror.bjtu.edu.cn/archlinux/$repo/os/$arch#Server = http://mirrors.hust.edu.cn/archlinux/$repo/os/$arch#Server = http://mirrors.hustunique.com/archlinu 阅读全文
posted @ 2014-04-03 11:52 jolin_blog 阅读(545) 评论(0) 推荐(0) 编辑