DOCROOT/system/classes/Kohana/Request/Client/Internal.php [ 79 ]
74 if ( ! class_exists($prefix.$controller))75 {76 throw HTTP_Exception::factory(404,77 'The requested URL :uri was not found on this server.',78 array(':uri' => $request->uri())79 )->request($request);80 }81 82 // Load the controller using reflection83 $class = new ReflectionClass($prefix.$controller);84 85
-
DOCROOT/system/classes/Kohana/Request/Client.php [ 114 ] » Kohana_Request_Client_Internal->execute_request ( arguments )
0 object(Request)#42 (19) { ["_requested_with":protected] => NULL ["_method":protected] => string(3) "GET" ["_protocol":protected] => string(8) "HTTP/1.1" ["_secure":protected] => bool(false) ["_referrer":protected] => NULL ["_route":protected] => object(Route)#41 (5) { ["_filters":protected] => array(0) { } ["_uri":protected] => string(32) "(<controller>(/<action>(/<id>)))" ["_regex":protected] => array(0) { } ["_defaults":protected] => array(2) { ["controller"] => string(4) "Page" ["action"] => string(5) "index" } ["_route_regex":protected] => string(95) "#^(?:(?P<controller>[^/.,;?\n]++)(?:/(?P<action>[^/.,;?\n]++)(?:/(?P<id>[^/.,;?\n]++))?)?)?$#uD" } ["_routes":protected] => array(0) { } ["_header":protected] => object(HTTP_Header)#43 (5) { ["_accept_content":protected] => NULL ["_accept_charset":protected] => NULL ["_accept_encoding":protected] => NULL ["_accept_language":protected] => NULL ["storage":"ArrayObject":private] => array(0) { } } ["_body":protected] => NULL ["_directory":protected] => string(0) "" ["_controller":protected] => string(11) "Action-rule" ["_action":protected] => string(5) "index" ["_uri":protected] => string(11) "action-rule" ["_external":protected] => bool(false) ["_params":protected] => array(0) { } ["_get":protected] => array(0) { } ["_post":protected] => array(0) { } ["_cookies":protected] => array(0) { } ["_client":protected] => object(Request_Client_Internal)#44 (9) { ["_previous_environment":protected] => NULL ["_cache":protected] => NULL ["_follow":protected] => bool(false) ["_follow_headers":protected] => array(1) { [0] => string(13) "authorization" } ["_strict_redirect":protected] => bool(true) ["_header_callbacks":protected] => array(1) { ["Location"] => string(34) "Request_Client::on_header_location" } ["_max_callback_depth":protected] => int(5) ["_callback_depth":protected] => int(1) ["_callback_params":protected] => array(0) { } } }
1 object(Response)#45 (5) { ["_status":protected] => int(200) ["_header":protected] => object(HTTP_Header)#46 (5) { ["_accept_content":protected] => NULL ["_accept_charset":protected] => NULL ["_accept_encoding":protected] => NULL ["_accept_language":protected] => NULL ["storage":"ArrayObject":private] => array(0) { } } ["_body":protected] => string(0) "" ["_cookies":protected] => array(0) { } ["_protocol":protected] => string(8) "HTTP/1.1" }
109 $orig_response = $response = Response::factory(array('_protocol' => $request->protocol()));110 111 if (($cache = $this->cache()) instanceof HTTP_Cache)112 return $cache->execute($this, $request, $response);113 114 $response = $this->execute_request($request, $response);115 116 // Execute response callbacks117 foreach ($this->header_callbacks() as $header => $callback)118 {119 if ($response->headers($header))120
-
DOCROOT/system/classes/Kohana/Request.php [ 997 ] » Kohana_Request_Client->execute ( arguments )
0 object(Request)#42 (19) { ["_requested_with":protected] => NULL ["_method":protected] => string(3) "GET" ["_protocol":protected] => string(8) "HTTP/1.1" ["_secure":protected] => bool(false) ["_referrer":protected] => NULL ["_route":protected] => object(Route)#41 (5) { ["_filters":protected] => array(0) { } ["_uri":protected] => string(32) "(<controller>(/<action>(/<id>)))" ["_regex":protected] => array(0) { } ["_defaults":protected] => array(2) { ["controller"] => string(4) "Page" ["action"] => string(5) "index" } ["_route_regex":protected] => string(95) "#^(?:(?P<controller>[^/.,;?\n]++)(?:/(?P<action>[^/.,;?\n]++)(?:/(?P<id>[^/.,;?\n]++))?)?)?$#uD" } ["_routes":protected] => array(0) { } ["_header":protected] => object(HTTP_Header)#43 (5) { ["_accept_content":protected] => NULL ["_accept_charset":protected] => NULL ["_accept_encoding":protected] => NULL ["_accept_language":protected] => NULL ["storage":"ArrayObject":private] => array(0) { } } ["_body":protected] => NULL ["_directory":protected] => string(0) "" ["_controller":protected] => string(11) "Action-rule" ["_action":protected] => string(5) "index" ["_uri":protected] => string(11) "action-rule" ["_external":protected] => bool(false) ["_params":protected] => array(0) { } ["_get":protected] => array(0) { } ["_post":protected] => array(0) { } ["_cookies":protected] => array(0) { } ["_client":protected] => object(Request_Client_Internal)#44 (9) { ["_previous_environment":protected] => NULL ["_cache":protected] => NULL ["_follow":protected] => bool(false) ["_follow_headers":protected] => array(1) { [0] => string(13) "authorization" } ["_strict_redirect":protected] => bool(true) ["_header_callbacks":protected] => array(1) { ["Location"] => string(34) "Request_Client::on_header_location" } ["_max_callback_depth":protected] => int(5) ["_callback_depth":protected] => int(1) ["_callback_params":protected] => array(0) { } } }
992 throw new Request_Exception('Unable to execute :uri without a Kohana_Request_Client', array( 993 ':uri' => $this->_uri, 994 )); 995 } 996 997 return $this->_client->execute($this); 998 } 999 1000 /**1001 * Returns whether this request is the initial request Kohana received.1002 * Can be used to test for sub requests.1003
-
DOCROOT/index.php [ 123 ] » Kohana_Request->execute ( )
118 /**119 * Execute the main request. A source of the URI can be passed, eg: $_SERVER['PATH_INFO'].120 * If no source is specified, the URI will be automatically detected.121 */122 echo Request::factory(TRUE, array(), FALSE)123 ->execute()124 ->send_headers(TRUE)125 ->body();126 }127