function accommodationdetails_offerdetails($merchant_name, $offerId) { $parts = explode('-', $merchant_name); $merchant_id = $parts[0]; $model = new BookingForConnectorModelMerchantDetails(); $merchant = $model->getItem($merchant_id); $offer = $model->getOffer($offerId); include 'templates/offer-details.php'; }