DOCROOT/system/classes/Kohana/View.php [ 265 ]
260 */261 public function set_filename($file)262 {263 if (($path = Kohana::find_file('views', $file)) === FALSE)264 {265 throw new View_Exception('The requested view :file could not be found', array(266 ':file' => $file,267 ));268 }269 270 // Store the file path locally271
-
DOCROOT/system/classes/Kohana/View.php [ 145 ] » Kohana_View->set_filename ( arguments )
0 templates//main_header 140 */141 public function __construct($file = NULL, array $data = NULL)142 {143 if ($file !== NULL)144 {145 $this->set_filename($file);146 }147 148 if ($data !== NULL)149 {150 // Add the values to the current data151
-
DOCROOT/system/classes/Kohana/View.php [ 30 ] » Kohana_View->__construct ( arguments )
0 templates//main_header 1 NULL
25 * @param array $data array of values26 * @return View27 */28 public static function factory($file = NULL, array $data = NULL)29 {30 return new View($file, $data);31 }32 33 /**34 * Captures the output that is generated when a view is included.35 * The view data will be extracted to make local variables. This method36
-
DOCROOT/application/classes/Controller/Template.php [ 93 ] » Kohana_View::factory ( arguments )
0 templates//main_header 88 public function after()89 {90 if ($this->auto_render != FALSE)91 {92 // Fills header container93 $header = View::factory($this->header);94 $this->template->bind('header', $header);95 96 // Binding page variables97 $this->template->bind_global('page', $this->page);98 // $this->template->bind('main_content', $this->content);99
-
DOCROOT/system/classes/Kohana/Controller.php [ 87 ] » Controller_Template->after ( )
82 83 // Execute the action itself84 $this->{$action}();85 86 // Execute the "after action" method87 $this->after();88 89 // Return the response90 return $this->response;91 }92 93
-
{PHP internal call} » Kohana_Controller->execute ( )
-
DOCROOT/system/classes/Kohana/Request/Client/Internal.php [ 97 ] » ReflectionMethod->invoke ( arguments )
0 object(Controller_Forms)#48 (9) { ["template_name"] => NULL ["style_name"] => NULL ["template"] => object(View)#50 (2) { ["_file":protected] => string(26) "application/views/main.php" ["_data":protected] => array(1) { ["content"] => string(0) "" } } ["page"] => array(7) { ["type"] => string(10) "form_prize" ["page_tags"] => array(0) { } ["title"] => string(27) "Конкурс призов" ["meta_description"] => string(0) "" ["meta_keywords"] => string(0) "" ["active_menu_item"] => string(0) "" ["h1"] => string(0) "" } ["header"] => string(22) "templates//main_header" ["footer"] => string(22) "templates//main_footer" ["auto_render"] => bool(true) ["request"] => 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(5) "Forms" ["_action":protected] => string(5) "prize" ["_uri":protected] => string(11) "forms/prize" ["_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) { } } } ["response"] => 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" } }
92 93 // Create a new instance of the controller 94 $controller = $class->newInstance($request, $response); 95 96 // Run the controller's execute() method 97 $response = $class->getMethod('execute')->invoke($controller); 98 99 if ( ! $response instanceof Response)100 {101 // Controller failed to return a Response.102 throw new Kohana_Exception('Controller failed to return a Response');103
-
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(5) "Forms" ["_action":protected] => string(5) "prize" ["_uri":protected] => string(11) "forms/prize" ["_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(5) "Forms" ["_action":protected] => string(5) "prize" ["_uri":protected] => string(11) "forms/prize" ["_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