/** * Execute the action */ public function execute() { parent::execute(); // action to execute $action = SpoonFilter::getGetValue('action', array('delete'), 'delete'); // no id's provided if (!isset($_GET['id'])) { $this->redirect(BackendModel::createURLForAction('index') . '&error=no-selection'); } else { // redefine id's $aIds = (array) $_GET['id']; // delete comment(s) if ($action == 'delete') { BackendTagsModel::delete($aIds); } } // redirect $this->redirect(BackendModel::createURLForAction('index') . '&report=deleted'); }