Exemple #1
0
 public function __construct()
 {
     parent::__construct();
     $this->db = base::load_model('activity_model');
     // 在这里配置关联关系. user 为返回的key. 通过uid 来匹配 mz_users 中的 id
     $this->relations = array("0" => array('relaId' => 'uid', 'relatedId' => 'id', 'relatedTable' => 'users', 'alias' => 'user', 'fileds' => '{x}name,{x}email,{x}phone,{x}location,{x}address,{x}appVersion,{x}userType'));
 }
Exemple #2
0
 public function __construct()
 {
     $this->db = base::load_model('content_model');
 }