root
2017-07-26 1bcf31e92e3daf1e1ad67ff4fab2d43278f9109c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<?php
 
class UserModel extends System_Model_Base{
 
    public $table = "user";
    
    public function getInfoByPhone($phone){
        return $this->get(array('phone' => $phone));
        //return $this->fetchRow('user', array('username' => $username));
    }
 
    public function getUserList(){
        return $this->getList(array('username' => 'colly'));
    }
 
}