Beispiel #1
0
 public function startup()
 {
     parent::startup();
     $this->config = $this->context->parameters['osm_oauth'];
     $this->oauth = new OAuth($this->config['consumer_key'], $this->config['consumer_secret'], OAUTH_SIG_METHOD_HMACSHA1, OAUTH_AUTH_TYPE_URI);
     $this->oauth->disableSSLChecks();
 }
 function startup()
 {
     parent::startup();
     if ($this->getAction() != 'registration' and $this->getAction() != 'lostPassword') {
         if (!NEnvironment::getUser()->isLoggedIn()) {
             $this->flashMessage(_('Nie ste prihlásený.'));
             $this->redirect('Eshop:homepage');
         }
     }
 }
 protected function startup()
 {
     parent::startup();
     $this->model = new UsersModel();
     //		$this->config = Environment::getConfig('settings');
 }
 protected function startup()
 {
     parent::startup();
     $this->model = new WpBlog();
 }
Beispiel #5
0
 public function beforeRender()
 {
     parent::startup();
     $this->triggerStaticEvent('event_Front_Pages_beforeRender', $this);
 }
 protected function startup()
 {
     parent::startup();
     $this->model = new SolutionsModel();
     $this->config = Environment::getConfig('solutions');
 }
 public function startup()
 {
     parent::startup();
     fulltext::init(FULLTEXT_DIR);
     searchlog::init(SEARCHLOG_DIR);
 }