コード例 #1
0
ファイル: OauthPresenter.php プロジェクト: osmcz/website
 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();
 }
コード例 #2
0
 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');
         }
     }
 }
コード例 #3
0
 protected function startup()
 {
     parent::startup();
     $this->model = new UsersModel();
     //		$this->config = Environment::getConfig('settings');
 }
コード例 #4
0
 protected function startup()
 {
     parent::startup();
     $this->model = new WpBlog();
 }
コード例 #5
0
ファイル: PagesPresenter.php プロジェクト: osmcz/website
 public function beforeRender()
 {
     parent::startup();
     $this->triggerStaticEvent('event_Front_Pages_beforeRender', $this);
 }
コード例 #6
0
 protected function startup()
 {
     parent::startup();
     $this->model = new SolutionsModel();
     $this->config = Environment::getConfig('solutions');
 }
コード例 #7
0
 public function startup()
 {
     parent::startup();
     fulltext::init(FULLTEXT_DIR);
     searchlog::init(SEARCHLOG_DIR);
 }