APPPATH/classes/controller/product.php [ 20 ]
15 $widok = new View("product");
16 $product = ORM::factory('product')->where('slug','=',$slug)->find();
17
18 if(!$product->loaded()) throw new HTTP_Exception_404();
19
20 if($product->visible == '0') throw new HTTP_Exception_404();
21
22 $widok->product = $product;
23
24 $random_products = ORM::factory('product')->order_by(DB::expr('RAND()'))->limit(3)->find_all();
25 $products_view = new View("products");
-
{PHP internal call} » Controller_Product->action_product(arguments)
0
string(47) "bts-hwa-yeong-yang-hwa-on-stage-epilogue-puzzle"
-
SYSPATH/classes/kohana/request/client/internal.php [ 132 ] » ReflectionMethod->invokeArgs(arguments)
0
object Controller_Product(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(16) "product(/<slug>)" protected _regex => array(0) protected _defaults => array(2) ( "controller" => string(7) "product" "action" => string(7) "product" ) protected _route_regex => string(41) "#^product(?:/(?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(7) "product" protected _action => string(7) "product" protected _uri => string(55) "product/bts-hwa-yeong-yang-hwa-on-stage-epilogue-puzzle" protected _external => bool FALSE protected _params => array(1) ( "slug" => string(47) "bts-hwa-yeong-yang-hwa-on-stage-epilogue-puzzle" ) 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 1710820689 }
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(47) "bts-hwa-yeong-yang-hwa-on-stage-epilogue-puzzle" )
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(16) "product(/<slug>)" protected _regex => array(0) protected _defaults => array(2) ( "controller" => string(7) "product" "action" => string(7) "product" ) protected _route_regex => string(41) "#^product(?:/(?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(7) "product" protected _action => string(7) "product" protected _uri => string(55) "product/bts-hwa-yeong-yang-hwa-on-stage-epilogue-puzzle" protected _external => bool FALSE protected _params => array(1) ( "slug" => string(47) "bts-hwa-yeong-yang-hwa-on-stage-epilogue-puzzle" ) 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 1710820689 }
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();