SYSPATH/classes/Kohana/Request/Client/Curl.php [ 105 ]
100 // Close the connection
101 curl_close($curl);
102
103 if (isset($error))
104 {
105 throw new Request_Exception('Error fetching remote :url [ status :code ] :error',
106 array(':url' => $request->url(), ':code' => $code, ':error' => $error));
107 }
108
109 $response->status($code)
110 ->body($body);
-
SYSPATH/classes/Kohana/Request/Client/External.php [ 140 ] » Kohana_Request_Client_Curl->_send_message()
135 $request->headers('user-agent', Kohana::version()); 136 } 137 138 try 139 { 140 $response = $this->_send_message($request, $response); 141 } 142 catch (Exception $e) 143 { 144 // Restore the previous request 145 Request::$current = $previous;
-
SYSPATH/classes/Kohana/Request/Client.php [ 114 ] » Kohana_Request_Client_External->execute_request()
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 callbacks 117 foreach ($this->header_callbacks() as $header => $callback) 118 { 119 if ($response->headers($header))
-
SYSPATH/classes/Kohana/Request.php [ 997 ] » Kohana_Request_Client->execute()
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.
-
APPPATH/classes/Model/Module/Pricelist.php [ 43 ] » Kohana_Request->execute()
38 public static function read_settings() 39 { 40 $settings = Kohana::cache('dnav_settings'); 41 if (!$settings) { 42 $request = new Request(self::$dnav_url . self::$dnav_assets_path . 'settings.json'); 43 $response = $request->execute(); 44 $settings = json_decode($response->body()); 45 46 Kohana::cache('dnav_settings', $settings, 600); 47 } 48
-
APPPATH/views/public/modules/pricelist.php [ 10 ] » Model_Module_Pricelist::read_settings()
5 $is_mobile = ($device == 'mobile'); 6 7 $dnav_url = Model_Module_Pricelist::$dnav_url; 8 $dnav_project_name = Model_Module_Pricelist::$dnav_project_name; 9 $dnav_assets_path = Model_Module_Pricelist::$dnav_assets_path; 10 $dnav_settings = Model_Module_Pricelist::read_settings(); 11 12 $def_style = isset($dnav_settings->settings->defaultStyle) ? $dnav_settings->settings->defaultStyle : 'def'; 13 14 $max_img_width = 630; // px 15
-
SYSPATH/classes/Kohana/View.php [ 62 ] » include(arguments)
0
string(62) "/srv/www/vk/web/application/views/public/modules/pricelist.php"
57 ob_start(); 58 59 try 60 { 61 // Load the view within the current scope 62 include $kohana_view_filename; 63 } 64 catch (Exception $e) 65 { 66 // Delete the output buffer 67 ob_end_clean();
-
SYSPATH/classes/Kohana/View.php [ 359 ] » Kohana_View::capture()
354 { 355 throw new View_Exception('You must set the file to use within your view before rendering'); 356 } 357 358 // Combine local and global data and capture the output 359 return View::capture($this->_file, $this->_data); 360 } 361 362 }
-
MODPATH/avo/classes/View.php [ 14 ] » Kohana_View->render()
9 */ 10 public function __toString() 11 { 12 try 13 { 14 return $this->render(); 15 } 16 catch (Throwable $e) 17 { 18 /** 19 * Display the exception message.
-
APPPATH/views/public/page.php [ 8 ] » View->__toString()
3 /* @var $page Model_Page */ 4 $modules = $page->modules->cached()->find_all(); 5 6 foreach ($modules as $i => $module) { /* @var $module Model_Module */ 7 if ($module->is_configured()) { 8 echo View::factory('public/modules/' . $module->view_name(), ['module' => $module->cast_class()]); 9 } 10 }
-
SYSPATH/classes/Kohana/View.php [ 62 ] » include(arguments)
0
string(49) "/srv/www/vk/web/application/views/public/page.php"
57 ob_start(); 58 59 try 60 { 61 // Load the view within the current scope 62 include $kohana_view_filename; 63 } 64 catch (Exception $e) 65 { 66 // Delete the output buffer 67 ob_end_clean();
-
SYSPATH/classes/Kohana/View.php [ 359 ] » Kohana_View::capture()
354 { 355 throw new View_Exception('You must set the file to use within your view before rendering'); 356 } 357 358 // Combine local and global data and capture the output 359 return View::capture($this->_file, $this->_data); 360 } 361 362 }
-
MODPATH/avo/classes/View.php [ 14 ] » Kohana_View->render()
9 */ 10 public function __toString() 11 { 12 try 13 { 14 return $this->render(); 15 } 16 catch (Throwable $e) 17 { 18 /** 19 * Display the exception message.
-
APPPATH/views/public/layout.php [ 114 ] » View->__toString()
109 <img height="1" width="1" src="https://www.facebook.com/tr?id=231207134097188&ev=PageView&noscript=1"/> 110 </noscript> 111 <!-- End Facebook Pixel Code --> 112 <a id="top"></a> 113 <?= ($page->str_id == Model_Page::ID_STR_HOME) ? '' : View::factory('public/_header') ?> 114 <?= $content ?> 115 </body> 116 </html>
-
SYSPATH/classes/Kohana/View.php [ 62 ] » include(arguments)
0
string(51) "/srv/www/vk/web/application/views/public/layout.php"
57 ob_start(); 58 59 try 60 { 61 // Load the view within the current scope 62 include $kohana_view_filename; 63 } 64 catch (Exception $e) 65 { 66 // Delete the output buffer 67 ob_end_clean();
-
SYSPATH/classes/Kohana/View.php [ 359 ] » Kohana_View::capture()
354 { 355 throw new View_Exception('You must set the file to use within your view before rendering'); 356 } 357 358 // Combine local and global data and capture the output 359 return View::capture($this->_file, $this->_data); 360 } 361 362 }
-
SYSPATH/classes/Kohana/Controller/Template.php [ 44 ] » Kohana_View->render()
39 */ 40 public function after() 41 { 42 if ($this->auto_render === TRUE) 43 { 44 $this->response->body($this->template->render()); 45 } 46 47 parent::after(); 48 } 49
-
MODPATH/avo/classes/AVO/Controller.php [ 131 ] » Kohana_Controller_Template->after()
126 127 128 public function after() 129 { 130 $this->dispatch_ajax_controller_request(); 131 parent::after(); 132 } 133 134 135 /** 136 * collects a gargbage produced by the application
-
APPPATH/classes/Controller/Abstract/Public.php [ 75 ] » AVO_Controller->after()
70 $this->response 71 ->json() 72 ->no_cache() 73 ->body(json_encode($this->json_result)); 74 } 75 parent::after(); 76 } 77 78 public function set_view($view_name) 79 { 80 parent::set_view($this->module.'/'.ltrim($view_name, '/'));
-
SYSPATH/classes/Kohana/Controller.php [ 87 ] » Controller_Abstract_Public->after()
82 83 // Execute the action itself 84 $this->{$action}(); 85 86 // Execute the "after action" method 87 $this->after(); 88 89 // Return the response 90 return $this->response; 91 } 92
-
{PHP internal call} » Kohana_Controller->execute()
-
SYSPATH/classes/Kohana/Request/Client/Internal.php [ 97 ] » ReflectionMethod->invoke()
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');
-
SYSPATH/classes/Kohana/Request/Client.php [ 114 ] » Kohana_Request_Client_Internal->execute_request()
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 callbacks 117 foreach ($this->header_callbacks() as $header => $callback) 118 { 119 if ($response->headers($header))
-
SYSPATH/classes/Kohana/Request.php [ 997 ] » Kohana_Request_Client->execute()
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.
-
DOCROOT/index.php [ 117 ] » Kohana_Request->execute()
112 /** 113 * Execute the main request. A source of the URI can be passed, eg: $_SERVER['PATH_INFO']. 114 * If no source is specified, the URI will be automatically detected. 115 */ 116 echo Request::factory(TRUE, array(), FALSE) 117 ->execute() 118 ->send_headers(TRUE) 119 ->body(); 120 }