APPPATH/classes/offers.php [ 99 ]
94 $cache->set($key, $data, Cache::DEFAULT_EXPIRE);
95 }
96
97 $result = array();
98
99 foreach($data as $row){
100
101 $result[] = $row;
102
103 }
104
-
APPPATH/classes/offers.php [ 99 ] » Kohana_Core::error_handler(arguments)
0
integer 2
1
string(39) "Invalid argument supplied for foreach()"
2
string(76) "/home/virtwww/w_federationto-ru_d1bb66bd/http/application/classes/offers.php"
3
integer 99
4
array(8) ( "category" => string(5) "ofisy" "t" => integer 2 "cache" => object Cache_File(2)
{ protected _cache_dir => object RecursiveDirectoryIterator(0)
"key" => string(10) "all_offers" "data" => NULL "host" => string(90) "https://xn----7sbf0aahnq1aem.xn--80aswg/rest/index/?A=LIST_PARAMS&C=ofisy&T=2&id_offset=25" "ch" => unknown type Resource id #97 "result" => array(0) ){ }
protected _config => array(3) ( "driver" => string(4) "file" "cache_dir" => string(63) "/home/virtwww/w_federationto-ru_d1bb66bd/http/application/cache" "default_expire" => integer 3600 ) }94 $cache->set($key, $data, Cache::DEFAULT_EXPIRE); 95 } 96 97 $result = array(); 98 99 foreach($data as $row){ 100 101 $result[] = $row; 102 103 } 104
-
APPPATH/views/index.php [ 79 ] » Offers->get_all_offers()
74 </div> 75 76 <div class="slider"> 77 <?php 78 $o = new Offers(); 79 $offers = $o->get_all_offers(); 80 81 if(!empty($offers)) 82 { 83 for($i=0; $i< 12; $i++){ 84
-
SYSPATH/classes/kohana/view.php [ 61 ] » include(arguments)
0
string(73) "/home/virtwww/w_federationto-ru_d1bb66bd/http/application/views/index.php"
56 ob_start(); 57 58 try 59 { 60 // Load the view within the current scope 61 include $kohana_view_filename; 62 } 63 catch (Exception $e) 64 { 65 // Delete the output buffer 66 ob_end_clean();
-
SYSPATH/classes/kohana/view.php [ 343 ] » Kohana_View::capture(arguments)
0
string(73) "/home/virtwww/w_federationto-ru_d1bb66bd/http/application/views/index.php"
1
array(4) ( "content" => string(1462) "<h2>Офис в Башне Федерация </h2>«Федерация» – современный многофункциональный комплекс, с офисными и жилыми зонами объеде …" "text_title" => string(14) "Главная" "title" => string(14) "Главная" "slides" => object Database_MySQL_Result(6)
{ protected _internal_row => integer 7 protected _query => string(80) "SELECT `slides`.* FROM `slides` WHERE `publish` = '1' ORDER BY `slides`.`id` ASC" protected _result => resource(mysql result) protected _total_rows => integer 7 protected _current_row => integer 7 protected _as_object => string(11) "Model_Slide" }
)338 { 339 throw new Kohana_View_Exception('You must set the file to use within your view before rendering'); 340 } 341 342 // Combine local and global data and capture the output 343 return View::capture($this->_file, $this->_data); 344 } 345 346 } // End View
-
SYSPATH/classes/kohana/view.php [ 228 ] » Kohana_View->render()
223 */ 224 public function __toString() 225 { 226 try 227 { 228 return $this->render(); 229 } 230 catch (Exception $e) 231 { 232 // Display the exception message 233 Kohana::exception_handler($e);
-
APPPATH/views/template.php [ 44 ] » Kohana_View->__toString()
39 ?> 40 </div> 41 </div> 42 43 44 <?= $content ?> 45 46 47 <?= !empty($slider_bottom) ? $slider_bottom : '' ?> 48 49
-
SYSPATH/classes/kohana/view.php [ 61 ] » include(arguments)
0
string(76) "/home/virtwww/w_federationto-ru_d1bb66bd/http/application/views/template.php"
56 ob_start(); 57 58 try 59 { 60 // Load the view within the current scope 61 include $kohana_view_filename; 62 } 63 catch (Exception $e) 64 { 65 // Delete the output buffer 66 ob_end_clean();
-
SYSPATH/classes/kohana/view.php [ 343 ] » Kohana_View::capture(arguments)
0
string(76) "/home/virtwww/w_federationto-ru_d1bb66bd/http/application/views/template.php"
1
array(6) ( "header" => object View(2)
{ protected _file => string(74) "/home/virtwww/w_federationto-ru_d1bb66bd/http/application/views/header.php" protected _data => array(0) }
"content" => object View(2){ protected _file => string(73) "/home/virtwww/w_federationto-ru_d1bb66bd/http/application/views/index.php" protected _data => array(4) ( "content" => string(1462) "<h2>Офис в Башне Федерация </h2>«Федерация» – современный многофункциональный комплекс, с офисными и жилыми зонами объеде …" "text_title" => string(14) "Главная" "title" => string(14) "Главная" "slides" => object Database_MySQL_Result(6)
"footer" => object View(2){ protected _internal_row => integer 7 protected _query => string(80) "SELECT `slides`.* FROM `slides` WHERE `publish` = '1' ORDER BY `slides`.`id` ASC" protected _result => resource(mysql result) protected _total_rows => integer 7 protected _current_row => integer 7 protected _as_object => string(11) "Model_Slide" }
) }{ protected _file => string(74) "/home/virtwww/w_federationto-ru_d1bb66bd/http/application/views/footer.php" protected _data => array(0) }
"subnav" => object View(2){ protected _file => string(74) "/home/virtwww/w_federationto-ru_d1bb66bd/http/application/views/subnav.php" protected _data => array(0) }
"online_form" => object View(2){ protected _file => string(79) "/home/virtwww/w_federationto-ru_d1bb66bd/http/application/views/online_form.php" protected _data => array(0) }
"news_content" => object View(2){ protected _file => string(80) "/home/virtwww/w_federationto-ru_d1bb66bd/http/application/views/news_content.php" protected _data => array(1) ( "news" => object Database_MySQL_Result(6)
){ protected _internal_row => integer 0 protected _query => string(60) "SELECT `news`.* FROM `news` ORDER BY `pub_date` DESC LIMIT 4" protected _result => resource(mysql result) protected _total_rows => integer 4 protected _current_row => integer 0 protected _as_object => string(10) "Model_News" }
) }338 { 339 throw new Kohana_View_Exception('You must set the file to use within your view before rendering'); 340 } 341 342 // Combine local and global data and capture the output 343 return View::capture($this->_file, $this->_data); 344 } 345 346 } // End View
-
SYSPATH/classes/kohana/view.php [ 228 ] » Kohana_View->render()
223 */ 224 public function __toString() 225 { 226 try 227 { 228 return $this->render(); 229 } 230 catch (Exception $e) 231 { 232 // Display the exception message 233 Kohana::exception_handler($e);
-
APPPATH/bootstrap.php [ 178 ] » Kohana_View->__toString()
173 } 174 catch (ErrorException $e){ 175 $request = Request::factory('404')->execute(); 176 } 177 178 echo $request->send_headers()->response; 179 180 }
-
DOCROOT/index.php [ 102 ] » require(arguments)
0
string(71) "/home/virtwww/w_federationto-ru_d1bb66bd/http/application/bootstrap.php"
97 // Load empty core extension 98 require SYSPATH.'classes/kohana'.EXT; 99 } 100 101 // Bootstrap the application 102 require APPPATH.'bootstrap'.EXT;