_location('gate'); } public function gateAction() { } public function loginAction() { if($this->_getParam('password') == 'holzmitloch') { $_SESSION['logged'] = 1; $this->_location('index'); } else { $this->_location('gate', null, array('wrongpassword' => '')); } } public function logoutAction() { $_SESSION['logged'] = 0; $this->_location('gate'); } }