function indexing_action() { $this->view->devOptions = $this->_config->get_admin_options(); if (!empty($_POST['skip_wizard_indexsation'])) { $this->view->success_message = 'Step was skipped.'; return $this->_next_action('indexing'); } if (!empty($_POST['process_indexing'])) { $sphinxService = new SphinxService($this->_config); $res = $sphinxService->reindex(); if (true === $res) { $this->view->indexsation_done = true; $this->view->success_message = 'Indexing is done successfully!'; return $this->_next_action('indexing'); } else { $this->view->error_message = $res['err']; } } $this->view->indexsation_done = false; $this->view->render('admin/wizard/sphinx_indexsation.phtml'); exit; }