public function index() { $data = ['apartamentTypes' => $this->query->getApartamentTypes(), 'cityList' => $this->query->getCityList(), 'sizeList' => $this->query->getSizeList(), 'view' => 'index']; if (isset($_SESSION['lastBookingId'])) { $data['successBooking'] = $this->query->getBooking($_SESSION['lastBookingId']); unset($_SESSION['lastBookingId']); } return Views::view($data); }