Search code examples
phphttp-redirecthttp-postrefreshkohana

How to refresh / reload page in kohana? [post/prg]


I need to refresh registration page after form is successfully submitted, to prevent multiple submissons on page reload (cleaning $_POST/$_REQUEST).

Currently I'm using:

$this->redirect('news/create', 303);

I don't want to specify path everytime, which shortcut can I use?

UPDATE:

I made something like

$this->redirect("../" . $this->request->uri(), 303);

Thanks to @biakaveron.But It's still messy, imho.

Additional info:


Solution

  • Seems like $this->redirect($this->request->uri(), 303); is the shortest way.