HTTP_Exception_404 [ 404 ]:

APPPATH/classes/controller/artist.php [ 26 ]

21     $c = Kohana::config('gutenberg')->get('products');
22   	$offset = $page*$c['items_per_page']-$c['items_per_page'];
23     
24     $artist = ORM::factory('artist')->where('slug','=',$slug)->where('visible','=','1')->find();
25     
26     if(!$artist->loaded()) throw new HTTP_Exception_404();
27     
28     $products = $artist->products->order_by('id','DESC')->limit($c['items_per_page'])->offset($offset)->where('visible','=','1')->find_all();
29     //$albums = $artist->albums->order_by('id','DESC')->where('visible','=','1')->find_all();
30       
31     $widok->products = $products; 
  1. {PHP internal call} » Controller_Artist->action_artist(arguments)

  2. SYSPATH/classes/kohana/request/client/internal.php [ 132 ] » ReflectionMethod->invokeArgs(arguments)

  3. SYSPATH/classes/kohana/request.php [ 1138 ] » Kohana_Request_Client_Internal->execute(arguments)

  4. DOCROOT/index.php [ 111 ] » Kohana_Request->execute()

Environment