Commit Graph

74 Commits

Author SHA1 Message Date
thinkphp
0e7518acec 修正Jump的result方法 2016-06-17 16:20:45 +08:00
thinkphp
9d56033b6d 去除Response类的result方法 改进Jump里面的result方法 2016-06-17 16:19:09 +08:00
thinkphp
50d1798e92 改进Handle类支持异常的多语言 Lang类增加has方法 增加核心中文语言包 2016-06-16 16:07:44 +08:00
thinkphp
b5fa195ad6 修正Controller类 2016-06-12 11:21:38 +08:00
thinkphp
8099a001e2 改进Response类的send方法 去除 REQUEST_METHOD IS_GET IS_POST IS_PUT IS_DELETE IS_AJAX __EXT__ 常量 由应用自己定义 2016-06-02 12:13:00 +08:00
trojanbox
6858abef7c 修改部分类注释 2016-05-30 18:14:18 +08:00
thinkphp
00cab34945 改进controller类的redirect方法和助手函数redirect 2016-05-29 11:11:11 +08:00
thinkphp
15df0ebf34 注释修正 2016-05-23 14:33:28 +08:00
thinkphp
92d999b484 response类增加create方法 改进think\response\redirect类 改进助手函数和traits\controller\Jump 2016-05-17 11:17:24 +08:00
thinkphp
d1f9ab38e2 修正traits\controller\Jump 2016-05-17 10:06:30 +08:00
thinkphp
c7c94258d0 改进Response类 增加think\response\View类 用于渲染模板响应输出 2016-05-16 18:10:46 +08:00
thinkphp
a4a14b3bf1 修正Query类 改进Response类 改进异常输出 2016-05-16 16:39:17 +08:00
thinkphp
30a6bd7e8a 改进Response类 改进view助手函数 增加 think\response\Html 类 2016-05-16 15:16:47 +08:00
thinkphp
199825ec32 改进Response类 支持扩展不同的输出类型 改进Model类 不同的模型采用不同的查询对象实例 修正Request类一处错误 助手函数view改进 直接返回Response类对象实例 2016-05-16 14:18:47 +08:00
thinkphp
67cebd8ca1 修正traits\controller/Jump.php 2016-05-12 09:45:07 +08:00
thinkphp
49c899acc5 调整 error和success方法的参数顺序 和原来保持一致 2016-05-12 08:15:05 +08:00
thinkphp
7f385217b9 改进response类 2016-05-11 14:04:56 +08:00
thinkphp
8e1cd9c51f 改进Response类 改进traits\controller\Jump 添加response助手函数 2016-05-11 07:51:41 +08:00
thinkphp
0b104d2b49 改进一处 错误 2016-04-27 16:49:36 +08:00
thinkphp
8bb8f0919b 改进Lang类 去除无用的 traits\model 2016-04-26 19:12:14 +08:00
oldrind
e462a05a00 视图模型增加对where组合条件的字段转换 2016-03-30 10:37:05 +08:00
oldrind
70ffc62bf9 修正视图模型中所引用的表找不到模型的问题,字段带有()时别名丢失的问题 2016-03-26 10:17:26 +08:00
oldrind
65ca52d049 修正Model类order方法一处bug,优化改进视图模型 2016-03-21 15:50:01 +08:00
thinkphp
75c6fb7670 修正traits\model\Auto 2016-03-10 21:42:59 +08:00
thinkphp
c8464f04f2 删除traits\model\Adv 中的序列号写入方法 2016-02-27 23:26:37 +08:00
thinkphp
2277add345 取消 traits\controller\view类 并入controller类 2016-02-20 11:25:28 +08:00
thinkphp
0521aebd1e traits\controller\View类增加engine方法用于初始化模板引擎
增加validate和auto额外扩展配置文件
2016-02-20 11:11:53 +08:00
thinkphp
eae50abb78 \traits\model\Auto 用于升级兼容原有模型的自动验证和自动完成用法 2016-02-20 09:05:38 +08:00
thinkphp
eb24c9fdee error和success方法的url参数支持传入空字符串 2016-02-15 19:41:20 +08:00
thinkphp
00f226a6f9 页面跳转的error和success模板分开 \think\controller类添加result方法 用于单独返回不同格式的api数据 2016-02-14 22:48:14 +08:00
thinkphp
5a319ed178 error和success方法的参数顺序调整 2016-02-12 13:04:54 +08:00
zizhilong
6ee3e78168 Update Bulk.php 2016-02-11 16:47:51 +08:00
zizhilong
d6affd7321 创建model扩展.用于大批量基于循环的数据插入或者数据更新.
//此演示需要手动修改Adv文件加载Bulk特性
    	$m=M('think\model\Adv:log');
        //连续插入10000条语句.在运行期间,会根据设定执行db的insertAll
    	for($i=0;$i<=10000;$i++)
    	{
    		$m->bulkAdd(array('application'=>'123456','content'=>'xxxx'));
    	}
        //执行最后更新
        //连续修改1万条记录
    	$m->bulkAdd(true);

    	for($i=0;$i<=10000;$i++){
    		$m->bulkSave(array('id'=>$i,'admin_id'=>$i*2));
    	}
        //执行最后的修改更新.
    	$m->bulkSave(true);
2016-02-11 15:58:24 +08:00
thinkphp
6011b57561 取消Model类的create方法的第二个参数 2016-02-09 20:27:31 +08:00
thinkphp
13259ce755 增加view_filter行为标签 2016-02-04 19:56:20 +08:00
thinkphp
fdb832cb19 修正\traits\model\Auto 一处警告错误 2016-02-02 11:29:12 +08:00
Chino Chang
f03c662712 Merge pull request #268 from dseguy/master
使用短语法
2016-02-01 23:54:29 +08:00
thinkphp
4c1fe8f556 修正relation关联模型一处警告错误 2016-02-01 23:43:48 +08:00
Damien Seguy
d86de5ef52 Uses short syntax 2016-02-01 12:21:06 +01:00
thinkphp
c8ff8b9f7a 修正traits\model 2016-01-31 20:55:52 +08:00
thinkphp
5fda023980 修正traits 2016-01-30 23:20:30 +08:00
thinkphp
107956f7a4 关联模型D函数替代 2016-01-30 11:24:05 +08:00
Jinchun Yang
f6a708e1f8 1)修改了一些注释的错误参数类型和返回类型
2)修改了一些无意义的变量名
3)本次 commit 没有逻辑上的变动
2016-01-29 22:28:01 +08:00
thinkphp
ec4f187aab 改进Db类 traits\Query 更改为 traits\Transaction 2016-01-22 12:34:18 +08:00
Mr.Wang
d041214a20 _before_write 问题 #208 2016-01-15 22:08:52 +08:00
oldrind
084431f0c6 修正复合值判断的问题,常量 MODEL_BOTH的值3,已是1和2的复合值,不需要再做位移 2016-01-13 15:04:35 +08:00
oldrind
cf85daf81a 去掉_auto属性和_validate属性的下划线 2016-01-13 13:54:45 +08:00
yin
987d9ccac0 修正验证单一字段时回调参数0也被转成数组的问题.
回调参数0, 在单字段验证时应为对应字段的值, 多字段时才为数组。
2016-01-12 22:58:34 +08:00
oldrind
d4a9a41722 1.改进自动验证支持关联验证
2.验证时间可设置为数组,一条规则可适用于多个验证时间
2016-01-12 21:22:29 +08:00
thinkphp
91ac44c85d 注释调整 2016-01-04 17:52:42 +08:00