public function render()
 {
     if (!$this->flash) {
         RedirectHelper::to($this->next);
     } else {
         RedirectHelper::flash($this->next, $this->flash['key'], $this->flash['value']);
     }
 }
Пример #2
0
 private function loginRedirect()
 {
     if ($this->requested_module != $this->config['module_name']) {
         RedirectHelper::flash($this->config['module_name'] . '/' . $this->config['login_action'], 'next', UrlHelper::current('', false));
     } else {
         RedirectHelper::to('/');
     }
 }
Пример #3
0
 final function validateOrRedirect($url = null)
 {
     if (!$url) {
         $url = UrlHelper::referer();
     }
     if (!$url) {
         $url = '/';
     }
     if (!$this->validate()) {
         RedirectHelper::flash($url, $this->getId(), $this->getFlashParams());
     }
 }