/** * Get the data for a question * * @return void */ private function getData() { // get categories $this->categories = BackendSlideshowModel::getCategoriesForDropdown(); if (empty($this->categories)) { $this->redirect(BackendModel::createURLForAction('AddCategory')); } }
/** * Get the data for a question * * @return void */ private function getData() { // get the record $this->record = BackendSlideshowModel::getGallery($this->id); $this->settings = BackendSlideshowModel::getAllSettings($this->id); // get categories $this->categories = BackendSlideshowModel::getCategoriesForDropdown(); }