throw_exception方法简化为E方法

删除redirect方法和N方法
This commit is contained in:
thinkphp
2013-03-31 10:15:32 +08:00
parent 0a0a8d0dce
commit 7890bca611
27 changed files with 85 additions and 217 deletions

View File

@@ -960,7 +960,7 @@ class Model {
}elseif(is_string($data)){
parse_str($data,$data);
}elseif(!is_array($data)){
throw_exception(L('_DATA_TYPE_INVALID_'));
E(L('_DATA_TYPE_INVALID_'));
}
$this->data = $data;
return $this;
@@ -1007,7 +1007,7 @@ class Model {
$options = $union;
}
}else{
throw_exception(L('_DATA_TYPE_INVALID_'));
E(L('_DATA_TYPE_INVALID_'));
}
$this->options['union'][] = $options;
return $this;