上一页 1 ··· 20 21 22 23 24 25 26 27 28 ··· 30 下一页
摘要: What will the following script output?[代码]"Testing 345"?No, we can get the reason from the book of Zend PHP Certification Test Book".This question tests your knowledge of string manipulation and opera... 阅读全文
posted @ 2010-05-14 11:15 DavidHHuan 阅读(299) 评论(0) 推荐(0)
摘要: 假设文档名为 myfile.iso进入文档所在目录,然后输入如下代码:[代码]过一段时间后,就会在该目录生成 myfile 文件,里面包含了 myfile.iso 的MD5码 阅读全文
posted @ 2010-05-13 15:48 DavidHHuan 阅读(554) 评论(0) 推荐(0)
摘要: 代码The result: red 阅读全文
posted @ 2010-05-12 16:57 DavidHHuan 阅读(205) 评论(0) 推荐(0)
摘要: 假设lampp下载后解压到 /opt/lampp在terminal里面输入下面命令:[代码] 阅读全文
posted @ 2010-05-05 17:04 DavidHHuan 阅读(249) 评论(0) 推荐(0)
摘要: The sequence function allows for creating a sequence which is iteratedover and wrapped around when the end is reached. This is particularlyuseful when you want to alternate colors in a list. It's poss... 阅读全文
posted @ 2010-05-05 13:57 DavidHHuan 阅读(304) 评论(0) 推荐(0)
摘要: When going through the manual, we can know that, fetch_alias() can be thought of as a configuration-file based version of the fetch() operator.But the fetch_alias() must be defined in configuration ov... 阅读全文
posted @ 2010-05-05 11:22 DavidHHuan 阅读(349) 评论(0) 推荐(0)
摘要: mark down:vim的重做(redo)的快捷键提示是 ^R 的按法是 ctrl + r 阅读全文
posted @ 2010-05-04 17:29 DavidHHuan 阅读(1281) 评论(0) 推荐(0)
摘要: There are two methods to do that: 1. ezhttp("myvariable", "get", TRUE);2. ezhttp_hasvariable("myvariable", "get");The second method is recommand to use.~ 阅读全文
posted @ 2010-05-04 12:02 DavidHHuan 阅读(284) 评论(0) 推荐(0)
摘要: 下面语句就可以获取当前控制器的名称了!Yii::app()->controller->id 阅读全文
posted @ 2010-04-21 11:56 DavidHHuan 阅读(752) 评论(0) 推荐(0)
摘要: <?php$this->beginWidget('zii.widgets.jui.CJuiDialog', array('id'=>'myJuiDialog','options'=>array('title'=>'Edit the user profile','autoOpen'=>false,'buttons'=>array('ok'=>"js:f... 阅读全文
posted @ 2010-04-21 11:56 DavidHHuan 阅读(714) 评论(0) 推荐(0)
摘要: 第一,比如说,我们要使用 Zend framework的东西。我们把zend framework解压到 prtected/vendors里面,现在的文件夹为 protected/vendors/Zend/Search/Lucene.php第二,在controller文件的头部,插入下面代码。Yii::import(’application.vendors.*’);requi... 阅读全文
posted @ 2010-04-21 11:55 DavidHHuan 阅读(935) 评论(0) 推荐(0)
摘要: 比如要使用mySQL中的md5函数,Test::model()->findAll(new CDbExpression("md5(name) =1")); 阅读全文
posted @ 2010-04-21 11:55 DavidHHuan 阅读(548) 评论(0) 推荐(0)
摘要: 要创建一个新的挂件(widget),我们主要是要继承两个方法:CWidget::init()和 CWidget::run(),CWidget::init 调用是发生在我们使用 $this->beginWidget 将挂件插入到一个view里面,CWidget::run 调用是发生在我们使用 $this->endWidget 这个方法的时候。 如果我们想捕捉和处理两者之间的方法核查办上显... 阅读全文
posted @ 2010-04-21 11:55 DavidHHuan 阅读(538) 评论(0) 推荐(0)
摘要: 假设数据库的设置已经弄好了,里面的有一个User表建立User模型model User建立User的CRUD行为crud User创建 Modulemodule forum 阅读全文
posted @ 2010-04-21 11:54 DavidHHuan 阅读(549) 评论(0) 推荐(0)
摘要: 把/media/MyDocuments/xampp/htdocs/myyii下面的index.php复制到/media/MyDocuments/xampp/htdocs/myyii/protected下面,然后将下面的代码$yii=dirname(__FILE__).'/framework/yii.php';$config=dirname(__FILE__).'/protected/config/... 阅读全文
posted @ 2010-04-21 11:54 DavidHHuan 阅读(445) 评论(0) 推荐(0)
上一页 1 ··· 20 21 22 23 24 25 26 27 28 ··· 30 下一页