public function render() { if (!$this->flash) { RedirectHelper::to($this->next); } else { RedirectHelper::flash($this->next, $this->flash['key'], $this->flash['value']); } }
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('/'); } }
final function validateOrRedirect($url = null) { if (!$url) { $url = UrlHelper::referer(); } if (!$url) { $url = '/'; } if (!$this->validate()) { RedirectHelper::flash($url, $this->getId(), $this->getFlashParams()); } }