/** * Installation Step 9: Finished! */ public function finished() { $this->checkPreviousStepIsValid( __FUNCTION__ ); $view = new Piwik_Installation_View( $this->pathView . 'finished.tpl', $this->getInstallationSteps(), __FUNCTION__ ); $this->skipThisStep( __FUNCTION__ ); if(!file_exists(Piwik_Config::getDefaultUserConfigPath())) { $this->writeConfigFileFromSession(); } $view->showNextStep = false; $this->session->currentStepDone = __FUNCTION__; echo $view->render(); $this->session->unsetAll(); }
public function finished() { $this->checkPreviousStepIsValid(__FUNCTION__); $view = new Piwik_Installation_View($this->pathView . 'finished.tpl', $this->getInstallationSteps(), __FUNCTION__); $this->skipThisStep(__FUNCTION__); $this->writeConfigFileFromSession(); $this->session->currentStepDone = __FUNCTION__; $view->showNextStep = false; @Zend_Session::destroy(true); echo $view->render(); }