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'); } }
public function preDispatch() { parent::preDispatch(); }
public function preDispatch() { $this->_db->getProfiler()->setEnabled(true); parent::preDispatch(); }
public function preDispatch() { parent::preDispatch(); //Zend_Debug::dump($_SERVER); }