getOne(array('where' => 'username=? and password=?', 'param' => array($data['name'],$data['password']), 'asArray' => TRUE)); } public function getRowByuser($username){ return $this->getOne(array('where' => 'username="'.$username.'"', 'asArray' => TRUE)); } }