public function init() { parent::init(); if ($this->user->role != Users_Model_User::ROLE_ADMIN && $this->underMaintenance) { return $this->_redirectForMaintenance(); } }
public function init() { parent::init(); if ($this->user->role != Users_Model_User::ROLE_ADMIN && $this->underMaintenance) { return $this->_redirectForMaintenance(); } if (!$this->_config->environment->registrations_enabled) { $this->_helper->FlashMessenger->addMessage($this->view->translate('Sorry, registrations are currently disabled')); return $this->_redirect(''); } }
public function init() { parent::init(); if (!self::$_metasRendered) { if (@$this->_config->metadata->description) { $this->view->headMeta()->appendName('description', $this->_config->metadata->description); } if (@$this->_config->metadata->keywords) { $this->view->headMeta()->appendName('keywords', $this->_config->metadata->keywords); } self::$_metasRendered = true; } Zend_Controller_Action_HelperBroker::addPrefix('CommunityID_Controller_Action_Helper'); }