摘要: http://doc.thinkphp.cn/manual/constant_reference.html注意:__URL__才能解析下面左右两边各两个下划线!对(两个下划线):__URL__错(一个下划线):_URL_否则会出现问题:地址跳转到了http://localhost/PHPtestUs... 阅读全文
posted @ 2015-11-29 20:49 afraliuyd 阅读(492) 评论(0) 推荐(0)
摘要: thinkphph快速入门读取数据当我们成功写入数据后,就可以进行数据读取操作了。在前面一篇中,我们已经知道可以用select方法获取数据集,这里我们来通过find方法获取一个单一数据,定义read操作方法如下:public function read($id=0){$Form = M('Form'... 阅读全文
posted @ 2015-11-29 20:17 afraliuyd 阅读(232) 评论(0) 推荐(0)
摘要: http://www.jb51.net/softjc/142672.html解决方法:【windows】→【preference】→【workspace】将Text file encoding 属性中other中字符集改为UTF-8点击【apply】按钮,点击【ok】按钮,完成字符集的修改。 阅读全文
posted @ 2015-11-29 18:59 afraliuyd 阅读(134) 评论(0) 推荐(0)
摘要: 点击editset encoding发现zend和eclipse的设置都大同小异差不多。 阅读全文
posted @ 2015-11-29 17:04 afraliuyd 阅读(126) 评论(1) 推荐(0)
摘要: 安装eclipse for phphttp://www.cnblogs.com/afra/p/5004969.htmlfile->new php project把工程目录放在D:\wamp\www然后把thinkphph框架复制到工程下面D:\wamp\www\myPHPtest用wampserve... 阅读全文
posted @ 2015-11-29 17:01 afraliuyd 阅读(1027) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2015-11-29 16:56 afraliuyd 阅读(126) 评论(0) 推荐(0)
摘要: 下载eclipse for phphttp://www.eclipse.org/downloads/packages/eclipse-php-developers/mars1解压直接能用双击eclipse.exe发现报错 找不到jrejdk下载:http://www.oracle.com/techn... 阅读全文
posted @ 2015-11-29 16:49 afraliuyd 阅读(2358) 评论(0) 推荐(0)
摘要: FormController.class.phpcreate()) {$result = $Form->add();// if($result) {// $this->success('数据添加成功!');// }else{// $this->error('数据添加错误!');// }// }els... 阅读全文
posted @ 2015-11-29 16:24 afraliuyd 阅读(204) 评论(0) 推荐(0)
摘要: 这段代码看不懂。-《thinkphph3.2.3快速入门》create()) {$result = $Form->add();if($result) {$this->success('数据添加成功!');}else{$this->error('数据添加错误!');}}else{$this->erro... 阅读全文
posted @ 2015-11-29 15:39 afraliuyd 阅读(163) 评论(1) 推荐(0)
摘要: 读取数据在开始之前,我们首先在数据库thinkphp中创建一个think_data数据表(以mysql数据库为例):CREATE TABLE IF NOT EXISTS `think_data`(`id`int(8)unsigned NOT NULL AUTO_INCREMENT,`data` va... 阅读全文
posted @ 2015-11-29 14:45 afraliuyd 阅读(286) 评论(0) 推荐(0)