diff options
| author | Simon | 2011-01-31 13:55:22 +0100 |
|---|---|---|
| committer | Simon | 2011-01-31 13:55:22 +0100 |
| commit | c142c466c6cc2efaec799334bbf36b514d1d1055 (patch) | |
| tree | b409ba9b63b9d121b5881e92654b79cb182b6a2c /application/controllers/PersonController.php | |
| parent | bootstrap und login funktionieren (diff) | |
| download | pbs2-c142c466c6cc2efaec799334bbf36b514d1d1055.tar.gz pbs2-c142c466c6cc2efaec799334bbf36b514d1d1055.tar.xz pbs2-c142c466c6cc2efaec799334bbf36b514d1d1055.zip | |
authController geänder
Diffstat (limited to 'application/controllers/PersonController.php')
| -rw-r--r-- | application/controllers/PersonController.php | 26 |
1 files changed, 26 insertions, 0 deletions
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 @@ +<?php + +class PersonController extends Zend_Controller_Action +{ + + public function init() + { + + } + + public function indexAction() + { + if (!Zend_Auth::getInstance()->hasIdentity()) { + echo 'case1'; + + + echo "already logged in as: " . Zend_Auth::getInstance()->getIdentity(); + #$this->_redirect($this->url(array('Auth','login'))); + } + echo 'case2'; + // action body + } + + +} + |
