增加 Think\Model\ExtendModel

Think\Model\RelationModel
Think\Model\ViewModel 三个模型组装示例
This commit is contained in:
ThinkPHP
2013-04-18 10:00:25 +08:00
parent d875ab2782
commit 624656db8e
4 changed files with 51 additions and 1 deletions

View File

@@ -0,0 +1,16 @@
<?php
// +----------------------------------------------------------------------
// | TOPThink [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2011 http://topthink.com All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
namespace Think\Model;
T('Think/Model/Relation');
class ViewModel extends \Think\Model {
use \Traits\Think\Relation;
}