コード例 #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 init()
 {
     parent::init();
 }
コード例 #5
0
 public function init()
 {
     parent::init();
     // Because this is a custom controller class
     $this->_ajaxContext->addActionContext('editbasicinfo', 'json')->initContext();
 }
コード例 #6
0
 public function init()
 {
     parent::init();
     // Because this is a custom controller class
     $this->_ajaxContext->addActionContext('fetchmoreproducts', 'json')->initContext();
 }
コード例 #7
0
 public function init()
 {
     parent::init();
     // Because this is a custom controller class
     $this->_ajaxContext->addActionContext('changepassword', 'json')->initContext();
 }
コード例 #8
0
 public function preDispatch()
 {
     parent::preDispatch();
     //Zend_Debug::dump($_SERVER);
 }
コード例 #9
0
 public function init()
 {
     parent::init();
     // Because this is a custom controller class
     $this->_ajaxContext->addActionContext('checkusername', 'json')->addActionContext('checkemail', 'json')->initContext();
 }
コード例 #10
0
 public function init()
 {
     parent::init();
     // Because this is a custom controller class
 }