protected function startup() { parent::startup(); $this->context->httpResponse->setContentType('text/css', 'UTF-8'); $this->jsFiles = array(); // empty it $this->cssFiles = array(); // empty it }
protected function startup() { parent::startup(); if ($this->isAjax()) { $this->invalidateControl('editForm'); } $this->viewControl = new Agility\viewControlControl($this, 'vc'); $this->userRepository = $this->context->userRepository; }
protected function startup() { parent::startup(); if (!$this->getUser()->isLoggedIn()) { $this->redirect('Sign:in'); } $this->userRepository = $this->context->userRepository; $this->authenticator = $this->context->authenticator; /** * Continue... */ }
protected function startup() { parent::startup(); $this->userRepository = $this->context->userRepository; }
protected function startup() { parent::startup(); reset($this->pages); $this->redirect('Item:default', key($this->pages)); }