I can't find function url::redirect
in kohana 3.1
What is the new name for this function ? (If it still exists !)
Asked
Active
Viewed 9,536 times
5

Shrinath
- 7,888
- 13
- 48
- 85

Vivek Goel
- 22,942
- 29
- 114
- 186
1 Answers
11
It has been changed in Kohana 3 to...
$this->request->redirect($newUrl);
You can use that in a controller.
Otherwise, use (as biakaveron kindly pointed out)...
Request::current()->redirect($newUrl);
-
1There is no `Request::instance()` in Ko3.1, use `Request::current()` or `Request::initial()` instead (redirect can be done from any Request object). – biakaveron Apr 14 '11 at 06:48