MODPATH/cache/classes/Kohana/Cache/File.php [ 483 ]
478 $lifetime = (int) $data->fgets();
479
480 // If we're at the EOF at this point, corrupted!
481 if ($data->eof())
482 {
483 throw new Cache_Exception(__METHOD__ . ' corrupted cache file!');
484 }
485
486 //close file
487 $data = null;
488
-
MODPATH/cache/classes/Kohana/Cache/File.php [ 143 ]
138 return $default; 139 } 140 else 141 { 142 // Test the expiry 143 if ($this->_is_expired($file)) 144 { 145 // Delete the file 146 $this->_delete_file($file, FALSE, TRUE); 147 return $default; 148 }
-
SYSPATH/classes/Kohana/Core.php [ 778 ]
773 if ($lifetime===0) 774 return Cache::instance()->delete($name); 775 776 //no data provided we read 777 if ($data===NULL) 778 return Cache::instance()->get($name); 779 //saves data 780 else 781 return Cache::instance()->set($name,$data, $lifetime); 782 } 783 else
-
SYSPATH/classes/Kohana/Fragment.php [ 85 ]
80 $lifetime = ($lifetime === NULL) ? Fragment::$lifetime : (int) $lifetime; 81 82 // Get the cache key name 83 $cache_key = Fragment::_cache_key($name, $i18n); 84 85 if ($fragment = Kohana::cache($cache_key, NULL, $lifetime)) 86 { 87 // Display the cached fragment now 88 echo $fragment; 89 90 return TRUE;
-
APPPATH/views/_includes/header.php [ 53 ]
48 </ul> 49 </div> 50 </div> 51 </section> 52 <?php 53 if ( ! Fragment::load('header-menu', Date::HOUR)) 54 { 55 echo View::factory('_includes/header/menu') 56 ->set('menu', $menu); 57 58 Fragment::save();
-
SYSPATH/classes/Kohana/View.php [ 62 ]
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 ]
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/View.php [ 236 ]
231 */ 232 public function __toString() 233 { 234 try 235 { 236 return $this->render(); 237 } 238 catch (Exception $e) 239 { 240 /** 241 * Display the exception message.
-
APPPATH/views/_layouts/main.php [ 62 ]
57 const lang = '<?php echo $lang ?>'; 58 const token = '<?php echo Security::token() ?>'; 59 </script> 60 </head> 61 <body> 62 <?php echo $header ?> 63 <?php echo $content ?> 64 <?php echo $footer ?> 65 <?php echo $modals ?> 66 <?php 67 echo $assets->body_close->css();
-
SYSPATH/classes/Kohana/View.php [ 62 ]
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 ]
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 }
-
APPPATH/classes/Controller/Common/Site.php [ 111 ]
106 107 public function after() 108 { 109 if ( ! $this->response->body()) 110 { 111 $this->response->body($this->template->render()); 112 } 113 114 parent::after(); 115 } 116
-
SYSPATH/classes/Kohana/Controller.php [ 87 ]
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}
-
SYSPATH/classes/Kohana/Request/Client/Internal.php [ 94 ]
89 90 // Create a new instance of the controller 91 $controller = $class->newInstance($request, $response); 92 93 // Run the controller's execute() method 94 $response = $class->getMethod('execute')->invoke($controller); 95 96 if ( ! $response instanceof Response) 97 { 98 // Controller failed to return a Response. 99 throw new Kohana_Exception('Controller failed to return a Response');
-
SYSPATH/classes/Kohana/Request/Client.php [ 114 ]
109 $orig_response = $response = Response::factory(['_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 [ 1000 ]
995 throw new Request_Exception('Unable to execute :uri without a Kohana_Request_Client', [ 996 ':uri' => $this->_uri, 997 ]); 998 } 999 1000 return $this->_client->execute($this); 1001 } 1002 1003 /** 1004 * Returns whether this request is the initial request Kohana received. 1005 * Can be used to test for sub requests.
-
/var/www/vhosts/my-print.kz/httpdocs/public/index.php [ 135 ]
130 /** 131 * Execute the main request. A source of the URI can be passed, eg: $_SERVER['PATH_INFO']. 132 * If no source is specified, the URI will be automatically detected. 133 */ 134 echo Request::factory(TRUE, [], FALSE) 135 ->execute() 136 ->send_headers(TRUE) 137 ->body(); 138 }