THINKPHP学习
2016-04-02 19:12
501 查看
$autoReply = D('AutoReply'); $autoReply->select(); 使用字符串查询 $con = 'appid="'.$this->getAppID()."\""; 使用数值查询 // $constant=1 // $con = 'id='.$constant; 查询 //$result = $autoReply->where($con)->select(); 删除 $result = $autoReply->where($con)->delete(); 插入 $insert_data = $_GET["ret"]; \Think\Log::record(__METHOD__." ".__LINE__." ".gettype($insert_data),'ERR');
PATHINFO模式
{$ruleItemData["keywords"][$i].keyword} 模板中使用变量
<if condition="$ruleItemData['keywords'][$i]['matchMode'] eq '0'">
<for start="0" end ="$ruleItemData.keywordsCount" >
Smarty模板
vendor 供应方、插件
模板中使用自定义函数: 应用目录下有Common目录,在此目录下的Common目录建立function.php
无法加载控制器:home,
'MODULE_ALLOW_LIST' => array('Home','Admin'),
define('BIND_MODULE','WeChat');
define('BUILD_CONTROLLER_LIST','Index,User,Menu');
这些代码只在项目开始的时候使用,后面就不用了
should be compatible 的错误处理 打开 Think\Model\MongoModel.class.php 找到 setInc($field,$step=1) 257行,修改为 setInc($field, $step = 1, $lazyTime = 0), 找到 setDec($field,$step=1) 268行,修改为 setDec($field, $step = 1, $lazyTime = 0) 。 打开 Think\Db\Driver\Mongo.class.php 找到 connect($config='',$linkNum=0) 48行,修改为 connect($config = '', $linkNum = 0, $autoConnection = false), 找到 insertAll($dataList,$options=array()) 229行,修改为insertAll($dataList, $options = array(), $replace = false)。
相关文章推荐
- 浅析ltp测试流程
- 痛苦的vsftpd配置
- Ubuntu搭建FTP(vsftpd)文件服务器
- thinkphp中配置信息的二维数组设置与使用
- php之常量
- ThinkPHP RBAC 的项目name很重要
- 如何用正则表达式匹配中文
- PHP中的时区设置date.timezone
- 在链接里使用thinkphp的U方法
- ThinkPHP使用存储过程
- Yii2查看sql语句方法
- YII2安装中遇到的错误解决Calling unknown method: yii\web\UrlManager::addRules()
- moodle config-dist.php -> config.php 一切都在这里,需要的加点注释
- Laravel学习笔记(六)数据库 数据库填充
- Laravel学习笔记(三)数据库 数据库迁移
- Laravel学习笔记(四)数据库 数据库迁移案例
- Laravel学习笔记(二)Laravel 应用程序的体系结构
- Laravel学习笔记(一)安装配置开发环境
- thinkphp模板中的随机数方法
- 一个高级PHP工程师所应该具备的