addChildRoom($roomModel); return $data; } } $addChildRoom = new addChildRoom; $data=$addChildRoom->addChildRoom(); echo json_encode($data);