/** * Load the data, don't forget to validate the incoming data * * @return void */ private function getData() { // get gallery data $this->gallery = FrontendSlideshowModel::getGallery($this->data['id']); // get image data $this->slides = FrontendSlideshowModel::getImages($this->data['id']); }
/** * Get the data * * @return void */ private function getData() { // check for errors if ($this->URL->getParameter(1) === null) { $this->redirect(FrontendNavigation::getURL(404)); } // get the gallery $this->record = FrontendSlideshowModel::getGalleryByURL($this->URL->getParameter(1)); if (empty($this->record)) { $this->redirect(FrontendNavigation::getURL(404)); } // get image data $this->slides = FrontendSlideshowModel::getImages($this->record['gallery_id']); // get gallery data $this->gallery = FrontendSlideshowModel::getGallery($this->record['gallery_id']); }