forward('default', 'module'); } /** * Toggles language from german to english * or english to german as appropriate. * * @return void * @author Benjamin Ramey **/ public function executeToggleLanguage() { $newCulture = 'en'; $curCulture = $this->getUser()->getCulture(); if($curCulture == "en") $newCulture = 'de'; $this->getUser()->setCulture($newCulture); $redirectUrl = str_replace("/".$curCulture."/", "/".$newCulture."/", $this->getRequest()->getReferer()); $this->redirect($redirectUrl); } }