diff --git a/Library/Think/Model.php b/Library/Think/Model.php index b17e0468..1f40bdcb 100644 --- a/Library/Think/Model.php +++ b/Library/Think/Model.php @@ -302,7 +302,7 @@ class Model { } // 删除成功后的回调方法 protected function _after_delete($data,$options) {} - + /** * 查询数据集 * @access public diff --git a/Library/Think/Model/ExtendModel.php b/Library/Think/Model/ExtendModel.php new file mode 100644 index 00000000..dc878991 --- /dev/null +++ b/Library/Think/Model/ExtendModel.php @@ -0,0 +1,18 @@ + +// +---------------------------------------------------------------------- + +namespace Think\Model; +use Traits\Think\Model\Extend,Traits\Think\Model\Query; +T('Think/Model/Extend'); +T('Think/Model/Query'); +class ExtendModel extends \Think\Model { + use Extend,Query; +} \ No newline at end of file diff --git a/Library/Think/Model/RelationModel.php b/Library/Think/Model/RelationModel.php new file mode 100644 index 00000000..a1937d3b --- /dev/null +++ b/Library/Think/Model/RelationModel.php @@ -0,0 +1,16 @@ + +// +---------------------------------------------------------------------- + +namespace Think\Model; +T('Think/Model/Relation'); +class ViewModel extends \Think\Model { + use \Traits\Think\Relation; +} \ No newline at end of file diff --git a/Library/Think/Model/ViewModel.php b/Library/Think/Model/ViewModel.php new file mode 100644 index 00000000..9f7fcfbd --- /dev/null +++ b/Library/Think/Model/ViewModel.php @@ -0,0 +1,16 @@ + +// +---------------------------------------------------------------------- + +namespace Think\Model; +T('Think/Model/View'); +class ViewModel extends \Think\Model { + use \Traits\Think\View; +} \ No newline at end of file