Error [ 0 ]: Call to undefined method Request::redirect()

APPPATH/classes/Controller/Index/Adverts.php [ 38 ]

33         $id = (int) $this->request->param('id');
34         $adverts = ORM::factory('advert', $id);
35 
36 
37         if (!$adverts->loaded()) {
38             $this->request->redirect('/advertы');
39         }
40 
41         $advertDate = date("Y-M-d", strtotime($adverts->date));
42         $date = array();
43         $date_c = explode('-', $advertDate);
  1. SYSPATH/classes/Kohana/Controller.php [ 84 ] » Controller_Index_Adverts->action_get()

  2. {PHP internal call} » Kohana_Controller->execute()

  3. SYSPATH/classes/Kohana/Request/Client/Internal.php [ 97 ] » ReflectionMethod->invoke(arguments)

  4. SYSPATH/classes/Kohana/Request/Client.php [ 114 ] » Kohana_Request_Client_Internal->execute_request(arguments)

  5. SYSPATH/classes/Kohana/Request.php [ 990 ] » Kohana_Request_Client->execute(arguments)

  6. DOCROOT/index.php [ 118 ] » Kohana_Request->execute()

Environment