getModule('configuration'); $this->Application->getGlobalization()->Culture = $this->getLanguage(); } public function getLanguage() { if(isset($this->Session['language']) && !empty($this->Session['language'])) { $language = $this->Session['language']; } else { $language = $this->getModule('configuration')->getLanguage(); $this->Session['language'] = $language; } return $language; } public function getModule($name) { return $this->Application->getModule($name); } public function goToPage($pagePath,$getParameters=null) { $this->Response->redirect($this->Service->constructUrl($pagePath,$getParameters,false)); } public function goToDefaultPage() { $this->goToPage($this->Service->DefaultPage); } } ?>