/** * 添加关注 */ public function create() { include_once ROOT_PATH . 'lib/class/friendships.class.php'; $id = $this->input['id']; $add_obj = new friendShips(); $result = $add_obj->create($id); echo json_encode($result[0]); }
/** * 添加关注 */ public function create() { include_once ROOT_PATH . 'lib/class/friendships.class.php'; $id = $this->input['id']; //加关注的ID $add_obj = new friendShips(); $result = $add_obj->create($id); }