コード例 #1
0
 public function preDispatch()
 {
     parent::preDispatch();
     if ($this->_auth->hasIdentity()) {
         $this->usersMapper = new Application_Model_Mapper_Users_UsersMapper();
         // get user info
         $this->user = $this->usersMapper->findByUsername($this->loggedInUser->username);
     } else {
         throw new Exception('No user is logged in');
     }
 }
コード例 #2
0
 public function preDispatch()
 {
     parent::preDispatch();
 }
コード例 #3
0
 public function preDispatch()
 {
     $this->_db->getProfiler()->setEnabled(true);
     parent::preDispatch();
 }
コード例 #4
0
 public function preDispatch()
 {
     parent::preDispatch();
     //Zend_Debug::dump($_SERVER);
 }