diff --git a/application/Bootstrap.php b/application/Bootstrap.php
index 0a6a407..26169dd 100644
--- a/application/Bootstrap.php
+++ b/application/Bootstrap.php
@@ -2,5 +2,6 @@
class Bootstrap extends Zend_Application_Bootstrap_Bootstrap
{
+
}
diff --git a/application/controllers/AuthController.php b/application/controllers/AuthController.php
index 0a2c8c0..070c2e8 100644
--- a/application/controllers/AuthController.php
+++ b/application/controllers/AuthController.php
@@ -26,8 +26,13 @@ class AuthController extends Zend_Controller_Action
$result = $adapter->authenticate();
if ($result->isValid()) {
- //$this->_helper->FlashMessenger('Erfolgreich angemeldet');
- $this->_redirect('/');
+ //$this->_helper->FlashMessenger('Erfolgreich angemeldet');
+ $this->_userNamespace->username = 'testt';
+
+ Zend_Debug::dump($_SESSION, $label="_SESSION nach Login: ", $echo=true);
+ Zend_Debug::dump($this->_userNamespace, $label="userNamespace: ", $echo=true);
+ $this->view->loginStatus = "Eingeloggt als " . $this->_userNamespace->username;
+ #$this->_redirect('/');
return;
} else {
//$this->_helper->FlashMessenger('E-Mail oder Passwort falsch');
diff --git a/application/controllers/PersonController.php b/application/controllers/PersonController.php
new file mode 100644
index 0000000..9a8aea2
--- /dev/null
+++ b/application/controllers/PersonController.php
@@ -0,0 +1,26 @@
+hasIdentity()) {
+ echo 'case1';
+
+
+ echo "already logged in as: " . Zend_Auth::getInstance()->getIdentity();
+ #$this->_redirect($this->url(array('Auth','login')));
+ }
+ echo 'case2';
+ // action body
+ }
+
+
+}
+
diff --git a/application/views/scripts/auth/login.phtml b/application/views/scripts/auth/login.phtml
index 8312487..0618564 100644
--- a/application/views/scripts/auth/login.phtml
+++ b/application/views/scripts/auth/login.phtml
@@ -1,5 +1,9 @@
loginForm->setAction($this->url());
echo $this->loginForm;
+
+echo "";
+print_r($_SESSION);
+echo "
";
?>
diff --git a/application/views/scripts/index/index.phtml b/application/views/scripts/index/index.phtml
index 4b38f0a..b3c2b57 100644
--- a/application/views/scripts/index/index.phtml
+++ b/application/views/scripts/index/index.phtml
@@ -1,43 +1,9 @@
-
-
-
Welcome to the Zend Framework!
-
-
This is your project's main page
-
-
-
\ No newline at end of file
+getIdentity();
+echo "";
+print_r($_SESSION);
+echo "
";
+Zend_Debug::dump($_SESSION, $label="_SESSION nach Login: ", $echo=true);
+ $this->view->loginStatus = "Eingeloggt als " . $this->_userNamespace->username;
+?>
+Zend-Framework Index
diff --git a/application/views/scripts/person/index.phtml b/application/views/scripts/person/index.phtml
new file mode 100644
index 0000000..7a96e97
--- /dev/null
+++ b/application/views/scripts/person/index.phtml
@@ -0,0 +1 @@
+
View script for controller Person and script/action name index
\ No newline at end of file
diff --git a/tests/application/controllers/PersonControllerTest.php b/tests/application/controllers/PersonControllerTest.php
new file mode 100644
index 0000000..351702e
--- /dev/null
+++ b/tests/application/controllers/PersonControllerTest.php
@@ -0,0 +1,20 @@
+