diff options
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 + } + + +} + |
