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;
-
{PHP internal call} » Controller_Artist->action_artist(arguments)
0
string(15) "psy-merchandise"
-
SYSPATH/classes/kohana/request/client/internal.php [ 132 ] » ReflectionMethod->invokeArgs(arguments)
0
object Controller_Artist(2)
{ public request => object Request(20)
{ protected _requested_with => NULL protected _method => string(3) "GET" protected _protocol => string(4) "http" protected _referrer => NULL protected _route => object Route(5)
public response => object Response(5){ protected _callback => NULL protected _uri => string(15) "artist(/<slug>)" protected _regex => array(0) protected _defaults => array(2) ( "controller" => string(6) "artist" "action" => string(6) "artist" ) protected _route_regex => string(40) "#^artist(?:/(?P<slug>[^/.,;?\n]++))?$#uD" }
protected _routes => NULL protected _response => object Response(5){ protected _status => integer 200 protected _header => object HTTP_Header(0)
protected _header => object HTTP_Header(0){ }
protected _body => string(0) "" protected _cookies => array(0) protected _protocol => string(4) "http" }{ }
protected _body => NULL protected _directory => string(0) "" protected _controller => string(6) "artist" protected _action => string(6) "artist" protected _uri => string(22) "artist/psy-merchandise" protected _external => bool FALSE protected _params => array(1) ( "slug" => string(15) "psy-merchandise" ) protected _get => array(0) protected _post => array(0) protected _cookies => array(0) protected _client => object Request_Client_Internal(5){ protected _previous_environment => NULL protected _cache => NULL protected _allow_private_cache => bool FALSE protected _request_time => NULL protected _response_time => integer 1710829313 }
public _injected_routes => array(0) }{ protected _status => integer 200 protected _header => object HTTP_Header(0)
}{ }
protected _body => string(0) "" protected _cookies => array(0) protected _protocol => string(4) "http" }1
array(1) ( "slug" => string(15) "psy-merchandise" )
127 * Execute the main action with the parameters 128 * 129 * @deprecated $params passing is deprecated since version 3.1 130 * will be removed in 3.2. 131 */ 132 $method->invokeArgs($controller, $params); 133 134 // Execute the "after action" method 135 $class->getMethod('after')->invoke($controller); 136 137 // Stop response time
-
SYSPATH/classes/kohana/request.php [ 1138 ] » Kohana_Request_Client_Internal->execute(arguments)
0
object Request(20)
{ protected _requested_with => NULL protected _method => string(3) "GET" protected _protocol => string(4) "http" protected _referrer => NULL protected _route => object Route(5)
{ protected _callback => NULL protected _uri => string(15) "artist(/<slug>)" protected _regex => array(0) protected _defaults => array(2) ( "controller" => string(6) "artist" "action" => string(6) "artist" ) protected _route_regex => string(40) "#^artist(?:/(?P<slug>[^/.,;?\n]++))?$#uD" }
protected _routes => NULL protected _response => object Response(5){ protected _status => integer 200 protected _header => object HTTP_Header(0)
protected _header => object HTTP_Header(0){ }
protected _body => string(0) "" protected _cookies => array(0) protected _protocol => string(4) "http" }{ }
protected _body => NULL protected _directory => string(0) "" protected _controller => string(6) "artist" protected _action => string(6) "artist" protected _uri => string(22) "artist/psy-merchandise" protected _external => bool FALSE protected _params => array(1) ( "slug" => string(15) "psy-merchandise" ) protected _get => array(0) protected _post => array(0) protected _cookies => array(0) protected _client => object Request_Client_Internal(5){ protected _previous_environment => NULL protected _cache => NULL protected _allow_private_cache => bool FALSE protected _request_time => NULL protected _response_time => integer 1710829313 }
public _injected_routes => array(0) }1133 throw new Kohana_Request_Exception('Unable to execute :uri without a Kohana_Request_Client', array( 1134 ':uri' => $this->_uri, 1135 )); 1136 } 1137 1138 return $this->_client->execute($this); 1139 } 1140 1141 /** 1142 * Returns whether this request is the initial request Kohana received. 1143 * Can be used to test for sub requests.
-
DOCROOT/index.php [ 111 ] » Kohana_Request->execute()
106 /** 107 * Execute the main request. A source of the URI can be passed, eg: $_SERVER['PATH_INFO']. 108 * If no source is specified, the URI will be automatically detected. 109 */ 110 echo Request::factory() 111 ->execute() 112 ->send_headers() 113 ->body();