MODPATH/database/classes/kohana/database/mysql.php [ 179 ]
174 {
175 // This benchmark is worthless
176 Profiler::delete($benchmark);
177 }
178
179 throw new Database_Exception(':error [ :query ]',
180 array(':error' => mysql_error($this->_connection), ':query' => $sql),
181 mysql_errno($this->_connection));
182 }
183
184 if (isset($benchmark))
-
MODPATH/database/classes/kohana/database/query.php [ 207 ] » Kohana_Database_MySQL->query(arguments)
0
integer 1
1
string(163) "SELECT * FROM `cms_banners` WHERE `group` = 'left1' AND `` = 1 AND `cms_banners`.`deleted` IS NULL ORDER BY `cms_banners`.`group …"
2
string(12) "Model_Banner"
202 return new Database_Result_Cached($result, $sql, $this->_as_object); 203 } 204 } 205 206 // Execute the query 207 $result = $db->query($this->_type, $sql, $this->_as_object); 208 209 if (isset($cache_key)) 210 { 211 // Cache the result array 212 Kohana::cache($cache_key, $result->as_array(), $this->_lifetime);
-
APPPATH/classes/orm.php [ 96 ] » Kohana_Database_Query->execute(arguments)
0
object Database_MySQL(6)
{ protected _connection_id => string(40) "06364bffec23b4c9d7fe9e727cdfd254f0f67b2a" protected _identifier => string(1) "`" public last_query => string(36) "SHOW FULL COLUMNS FROM `cms_banners`" protected _instance => string(7) "default" protected _connection => resource(mysql link) protected _config => array(6) ( "type" => string(5) "mysql" "connection" => array(3) ( "hostname" => string(14) "60970.m.tld.pl" "database" => string(17) "baza60970_istebna" "persistent" => bool FALSE ) "table_prefix" => string(4) "cms_" "charset" => string(4) "utf8" "caching" => bool FALSE "profiling" => bool TRUE ) }
91 } 92 93 if ($multiple === TRUE) 94 { 95 // Return database iterator casting to this object type 96 $result = $this->_db_builder->as_object(get_class($this))->execute($this->_db); 97 98 $this->reset(); 99 100 return $result; 101 }
-
MODPATH/orm/classes/kohana/orm.php [ 772 ] » ORM->_load_result(arguments)
0
bool TRUE
767 } 768 } 769 770 $this->_build(Database::SELECT); 771 772 return $this->_load_result(TRUE); 773 } 774 775 /** 776 * Validates the current model's data 777 *
-
MODPATH/banners/classes/model/banner.php [ 112 ] » Kohana_ORM->find_all()
107 108 return parent::save(); 109 } 110 111 public function getByGroup($group, $zone) { 112 return $this->where('group', '=', $group)->zone($zone)->find_all(); 113 } 114 115 public function getRandByGroup($group) { 116 return $this->where('group', '=', $group)->order_by(DB::expr('RAND()'))->limit(1)->find(); 117 }
-
APPPATH/views/frontend/mieszkaniec/layout/main.php [ 140 ] » Model_Banner->getByGroup(arguments)
0
string(5) "left1"
1
NULL
135 <div id="leftmenu" style="position:relative;float:left;margin:0 0 20px 0"> 136 <?php echo Menus::generate_menu(6, isset($page)?$page:NULL, 3, 0, 0)?> 137 <div id="calendar_bip"> 138 <?php echo HTML::anchor('http://istebna.bip.info.pl/kontakt.php', 'Biuletyn informacji publicznej'.HTML::image('media/frontend/css/images/bip.jpg',array('alt'=>'Biuletyn informacji publicznej','title'=>'Biuletyn informacji publicznej')), array('target' => '_blank','class'=>'bip'))?> 139 <?php echo HTML::anchor('http://www.monitorpolski.gov.pl/', 'Monitor Polski - dziennik urzędowy rzeczypospolitej polskiej - strona zostanie otwarta na nowej karcie'.HTML::image('media/frontend/css/images/mp.jpg',array('alt'=>'Monitor Polski - dziennik urzędowy rzeczypospolitej polskiej','title'=>'Monitor Polski - dziennik urzędowy rzeczypospolitej polskiej')), array('target' => '_blank','class'=>'mp'))?> 140 <?php $banners1 = ORM::factory('banner')->getByGroup('left1', $global_zone)?> 141 <?php if (count($banners1) > 0):?> 142 <?php foreach ($banners1 as $banner):?> 143 <?php if ($banner->href === NULL):?> 144 <?php echo HTML::image($banner, array('class'=>'banner', 'alt'=>$banner->alternative, 'title'=>$banner->alternative))?> 145 <?php else:?>
-
SYSPATH/classes/kohana/view.php [ 61 ] » include(arguments)
0
string(91) "/home/users/istebna/public_html/nowa/application/views/frontend/mieszkaniec/layout/main.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(91) "/home/users/istebna/public_html/nowa/application/views/frontend/mieszkaniec/layout/main.php"
1
array(1) ( "content" => object View(2)
{ protected _file => string(103) "/home/users/istebna/public_html/nowa/modules/newslettersms/views/frontend/newslettersms/unsubscribe.php" protected _data => array(0) }
)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 [ 260 ] » Kohana_View->__toString()
255 //$request = Request::factory(I18n::lang() . '/errors/404')->execute(); 256 $request = Request::factory($tmp[0].'/errors/404')->execute(); 257 } 258 259 echo $request->send_headers() 260 ->response; 261 }
-
DOCROOT/index.php [ 115 ] » require(arguments)
0
string(62) "/home/users/istebna/public_html/nowa/application/bootstrap.php"
110 // Load empty core extension 111 require SYSPATH.'classes/kohana'.EXT; 112 } 113 114 // Bootstrap the application 115 require APPPATH.'bootstrap'.EXT;