/** * Reset the vote count for an entry * * @return void */ public function resetTask() { // Check for request forgeries Request::checkToken(); // Incoming $answer = Request::getVar('answer', array()); // Reset some values $model = new Response(intval($answer['id'])); if (!$model->reset()) { throw new Exception($ar->getError(), 500); } // Redirect App::redirect(Route::url('index.php?option=' . $this->_option . '&controller=' . $this->_controller, false), Lang::txt('COM_ANSWERS_VOTE_LOG_RESET')); }