Kohana_HTTP_Exception [ 404 ]:

APPPATH/classes/Controller/Welcome.php [ 256 ]

251         $albumId = (int)$this->request->param('albumId', 0);
252         $am = new Model_Gallery();
253         if ($albumId) {
254             $albumInfo = $am->getFolder($albumId);
255             if (empty($albumInfo)) {
256                 throw HTTP_Exception::factory(404);
257             }
258 
259             $photos = DB::select()->from('gallery')
260                 ->where('pid', '=', $albumId)->order_by('id', 'DESC')->execute()->as_array();
261             $this->template->title .= ' | ' . $albumInfo['title'];
  1. SYSPATH/classes/Kohana/Controller.php [ 84 ] » Controller_Welcome->action_gallery()

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

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

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

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

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

Environment