function actionDeleteSlide($params = '') { if (!empty($params['slide_id'])) { $objSlideshow = new SlideshowModel(); $objSlideshow->deleteSlide($params['slide_id']); $this->messages[] = array('type' => 'success', 'message' => 'Slide has been deleted.'); } else { $this->messages[] = array('type' => 'error', 'message' => 'Unknown slide to delete.'); } if (!empty($params['show_id'])) { $this->actionEditShow(array('show_id' => intval($params['show_id']))); } else { $this->actionIndex(); } }