Example #1
0
 public function before()
 {
     parent::before();
     if (!$this->execute) {
         return;
     }
 }
Example #2
0
 /**
  * require auth
  */
 public function before()
 {
     $this->secure();
     if (is_null($this->getUser())) {
         $this->redirect('/user/login?return_url=' . rawurlencode($this->request->server('REQUEST_URI')));
     }
     parent::before();
 }
Example #3
0
 /**
  * require auth
  */
 public function before()
 {
     if (is_null($this->pixie->auth->user())) {
         $this->redirect('/user/login?return_url=' . rawurlencode($this->request->server('REQUEST_URI')));
     }
     parent::before();
     if (!$this->execute) {
         return;
     }
     $this->useRest = $this->pixie->getParameter('parameters.rest_in_profile', false);
     $this->view->useRest = $this->useRest;
 }
Example #4
0
 public function before()
 {
     $this->secure();
     parent::before();
 }
Example #5
0
 public function before()
 {
     parent::before();
     $this->view->host = $this->request->getSiteUrl();
 }
Example #6
0
 /**
  * require auth
  */
 public function before()
 {
     parent::before();
 }