/** * Load the data */ protected function loadData() { //--Check the params if ($this->URL->getParameter(1) === null) { $this->redirect(FrontendNavigation::getURL(404)); } //--Get record $this->record = FrontendGalleryModel::getAlbum($this->URL->getParameter(1)); //--Redirect if empty if (empty($this->record)) { $this->redirect(FrontendNavigation::getURL(404)); } }
/** * Load the data */ private function loadData() { $this->record = FrontendGalleriaModel::getImagesForAlbum($this->data['id']); }
/** * Load the data */ protected function loadData() { $this->record = FrontendGalleryModel::getAlbumsForOverview(); }