摘要: yii CComponent组件 实例说明yii中的module,controller都是CComponent的子类,可以说yii的架构基石就是依托在CCompnent基础上的,这里研究下CComponent。另外写一个简单的组件应用示例。希望可以帮助到大家。component有三个基础特性,属性(... 阅读全文
posted @ 2014-08-28 23:23 午火39 阅读(486) 评论(0) 推荐(0)
摘要: YII第三步,日志开启index.php入口文件配置;defined('YII_DEBUG') or define('YII_DEBUG',true);cofig/main.php'preload'=>array('log'), 'log'=>array( 'class'=>'... 阅读全文
posted @ 2014-08-28 22:13 午火39 阅读(345) 评论(0) 推荐(0)
摘要: yii第二步:main.php'urlManager'=>array('urlFormat'=>'path','rules'=>array('game/guess/'=>'game/guess','gou/games/'=>'gou/game',//index.php/gou/d(实际地址) => ... 阅读全文
posted @ 2014-08-28 22:10 午火39 阅读(256) 评论(0) 推荐(0)
摘要: 第一步:index.php// include Yii bootstrap filerequire_once(dirname(__FILE__).'/../../framework/yii.php');defined('YII_DEBUG') or define('YII_DEBUG',true);... 阅读全文
posted @ 2014-08-28 22:05 午火39 阅读(166) 评论(0) 推荐(0)
摘要: 转自:http://bbs.gfan.com/android-5941970-1-1.htmlWindows7安装JDK的环境变量设置Windows7 X64安装“jdk-6u26-windows-x64.exe”后,按照网上的环境变量设置方法设置了环境变量,但是死活都提示“javac不是内部命令或... 阅读全文
posted @ 2014-08-20 11:45 午火39 阅读(8481) 评论(2) 推荐(2)
摘要: the host may be down,or there may be a problem with the network connection.Sometimes such problems can also be caused by a misconfigured firewall.遇到这样... 阅读全文
posted @ 2014-08-04 22:17 午火39 阅读(2156) 评论(0) 推荐(0)
摘要: config_dir=//$smarty->cache_dir="./caches";//设置缓存目录//$smarty->caching=true;//关闭缓存,调试中建议关闭默认为关闭即设置成false$smarty->cache_lifetime=60;//单位为秒 设置缓存时间$smarty... 阅读全文
posted @ 2014-07-24 18:39 午火39 阅读(456) 评论(0) 推荐(0)
摘要: 原来从php5.1.0开始,php.ini里加入了date.timezone这个选项,默认情况下是关闭的也就是显示的时间(无论用什么php命令)都是格林威治标准时间和我们的时间(北京时间)差了正好8个小时,有以下3中方法可以恢复正常的时间。1,最简单的方法就是不要用php5.1以上的版本2,如果一定... 阅读全文
posted @ 2014-07-24 18:33 午火39 阅读(391) 评论(0) 推荐(0)
摘要: php程序用file_get_contents("http://www.***.com"),一直以来好好的,突然间就不能链接远程网址了,在shell下可以ping通远程网址,可是用php的file_get_contents()或者php的curl()函数就不能访问了,而是莫名把远程网址解析成本地12... 阅读全文
posted @ 2014-07-21 15:53 午火39 阅读(1092) 评论(0) 推荐(0)
摘要: [root@Hammer home]# rpm -qa |grep rsync #检查系统是否安装了rsync软件包rsync-2.6.8-3.1[root@Hammer CentOS]# rpm -ivh rsync-2.6.8-3.1.i386.rpm # 如果没有安装则手动安装[root@te... 阅读全文
posted @ 2014-06-29 16:39 午火39 阅读(1684) 评论(0) 推荐(0)