blob: 9a8aea25dad90caffc715e716a569c785e2d5647 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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
}
}
|