MODPATH/database/classes/kohana/database/mysql.php [ 194 ]
189 {
190 // This benchmark is worthless
191 Profiler::delete($benchmark);
192 }
193
194 throw new Database_Exception(':error [ :query ]',
195 array(':error' => mysql_error($this->_connection), ':query' => $sql),
196 mysql_errno($this->_connection));
197 }
198
199 if (isset($benchmark))
-
MODPATH/database/classes/kohana/database/query.php [ 251 ] » Kohana_Database_MySQL->query(arguments)
0
integer 1
1
string(188) "SELECT `sline_hotel_extend_field`.`id` AS `id`, `sline_hotel_extend_field`.`productid` AS `productid` FROM `sline_hotel_extend_f …"
2
bool FALSE
3
array(0)
246 return new Database_Result_Cached($result, $sql, $as_object, $object_params); 247 } 248 } 249 250 // Execute the query 251 $result = $db->query($this->_type, $sql, $as_object, $object_params); 252 253 if (isset($cache_key) AND $this->_lifetime > 0) 254 { 255 // Cache the result array 256 Kohana::cache($cache_key, $result->as_array(), $this->_lifetime);
-
MODPATH/orm/classes/kohana/orm.php [ 1197 ] » Kohana_Database_Query->execute(arguments)
0
object Database_MySQL(6)
{ protected _connection_id => string(40) "c279e1a02716370aedba76d4176aefa3ff645cad" protected _identifier => string(1) "`" public last_query => string(49) "SHOW FULL COLUMNS FROM `sline_hotel_extend_field`" protected _instance => string(7) "default" protected _connection => resource(mysql link) protected _config => array(6) ( "type" => string(5) "mysql" "connection" => array(3) ( "hostname" => string(9) "127.0.0.1" "database" => string(8) "minsunew" "persistent" => bool FALSE ) "table_prefix" => string(6) "sline_" "charset" => string(4) "utf8" "caching" => bool FALSE "profiling" => bool TRUE ) }
1192 return $result; //直接返回资源数组. 1193 } 1194 else 1195 { 1196 // Load the result as an associative array 1197 $result = $this->_db_builder->as_assoc()->execute($this->_db); 1198 1199 $this->reset(); 1200 1201 if ($result->count() === 1) 1202 {
-
MODPATH/orm/classes/kohana/orm.php [ 1018 ] » Kohana_ORM->_load_result(arguments)
0
bool FALSE
1013 } 1014 } 1015 1016 $this->_build(Database::SELECT); 1017 1018 return $this->_load_result(FALSE); 1019 } 1020 1021 /** 1022 * Finds multiple database rows and returns an iterator of the rows found. 1023 *
-
APPPATH/classes/controller/hotel.php [ 71 ] » Kohana_ORM->find()
66 //支付方式 67 $paytypeArr=explode(',',$GLOBALS['cfg_pay_type']); 68 //扩展字段信息 69 $extend_info = ORM::factory('hotel_extend_field') 70 ->where("productid=" . $info['id']) 71 ->find() 72 ->as_array(); 73 //目的地上级 74 if($info['finaldestid']>0) 75 { 76 $predest = Product::get_predest($info['finaldestid']);
-
{PHP internal call} » Controller_Hotel->action_show()
-
SYSPATH/classes/kohana/request/client/internal.php [ 116 ] » ReflectionMethod->invoke(arguments)
0
object Controller_Hotel(7)
{ private typeid => integer 2 private _cache_key => string(44) "http://minsu.home898.com/hotels/show_24.html" public _data => array(4) ( "cmsurl" => string(1) "/" "webname" => string(12) "海南民宿" "typeid" => integer 2 "channelname" => string(6) "民宿" ) public params => array(1) ( "" => string(1) "0" ) protected cmsurl => string(1) "/" public request => object Request(20)
{ protected _requested_with => NULL protected _method => string(3) "GET" protected _protocol => string(8) "HTTP/1.1" protected _secure => bool FALSE protected _referrer => NULL protected _route => object Route(5)
public response => object Response(5){ protected _callback => NULL protected _uri => string(28) "hotels(/<action>_<aid>.html)" protected _regex => array(2) ( "aid" => string(3) "\d+" "action" => string(4) "show" ) protected _defaults => array(2) ( "action" => string(5) "index" "controller" => string(5) "hotel" ) protected _route_regex => string(53) "#^hotels(?:/(?P<action>show)_(?P<aid>\d+)\.html)?$#uD" }
protected _routes => array(0) protected _response => object Response(5){ protected _status => integer 200 protected _header => object HTTP_Header(0)
protected _header => object HTTP_Header(0){ }
protected _body => string(0) "" protected _cookies => array(0) protected _protocol => string(8) "HTTP/1.1" }{ }
protected _body => NULL protected _directory => string(0) "" protected _controller => string(5) "hotel" protected _action => string(4) "show" protected _uri => string(19) "hotels/show_24.html" protected _external => bool FALSE protected _params => array(1) ( "aid" => string(2) "24" ) protected _get => array(0) protected _post => array(0) protected _cookies => array(0) protected _client => object Request_Client_Internal(2){ protected _previous_environment => NULL protected _cache => NULL }
}{ protected _status => integer 200 protected _header => object HTTP_Header(0)
}{ }
protected _body => string(0) "" protected _cookies => array(0) protected _protocol => string(8) "HTTP/1.1" }111 throw new HTTP_Exception_404('The requested URL :uri was not found on this server.', 112 array(':uri' => $request->uri())); 113 } 114 115 $method = $class->getMethod('action_'.$action); 116 $method->invoke($controller); 117 118 // Execute the "after action" method 119 $class->getMethod('after')->invoke($controller); 120 } 121 catch (Exception $e)
-
SYSPATH/classes/kohana/request/client.php [ 64 ] » Kohana_Request_Client_Internal->execute_request(arguments)
0
object Request(20)
{ protected _requested_with => NULL protected _method => string(3) "GET" protected _protocol => string(8) "HTTP/1.1" protected _secure => bool FALSE protected _referrer => NULL protected _route => object Route(5)
{ protected _callback => NULL protected _uri => string(28) "hotels(/<action>_<aid>.html)" protected _regex => array(2) ( "aid" => string(3) "\d+" "action" => string(4) "show" ) protected _defaults => array(2) ( "action" => string(5) "index" "controller" => string(5) "hotel" ) protected _route_regex => string(53) "#^hotels(?:/(?P<action>show)_(?P<aid>\d+)\.html)?$#uD" }
protected _routes => array(0) protected _response => object Response(5){ protected _status => integer 200 protected _header => object HTTP_Header(0)
protected _header => object HTTP_Header(0){ }
protected _body => string(0) "" protected _cookies => array(0) protected _protocol => string(8) "HTTP/1.1" }{ }
protected _body => NULL protected _directory => string(0) "" protected _controller => string(5) "hotel" protected _action => string(4) "show" protected _uri => string(19) "hotels/show_24.html" protected _external => bool FALSE protected _params => array(1) ( "aid" => string(2) "24" ) protected _get => array(0) protected _post => array(0) protected _cookies => array(0) protected _client => object Request_Client_Internal(2){ protected _previous_environment => NULL protected _cache => NULL }
}59 public function execute(Request $request) 60 { 61 if ($this->_cache instanceof HTTP_Cache) 62 return $this->_cache->execute($this, $request); 63 64 return $this->execute_request($request); 65 } 66 67 /** 68 * Processes the request passed to it and returns the response from 69 * the URI resource identified.
-
SYSPATH/classes/kohana/request.php [ 1160 ] » Kohana_Request_Client->execute(arguments)
0
object Request(20)
{ protected _requested_with => NULL protected _method => string(3) "GET" protected _protocol => string(8) "HTTP/1.1" protected _secure => bool FALSE protected _referrer => NULL protected _route => object Route(5)
{ protected _callback => NULL protected _uri => string(28) "hotels(/<action>_<aid>.html)" protected _regex => array(2) ( "aid" => string(3) "\d+" "action" => string(4) "show" ) protected _defaults => array(2) ( "action" => string(5) "index" "controller" => string(5) "hotel" ) protected _route_regex => string(53) "#^hotels(?:/(?P<action>show)_(?P<aid>\d+)\.html)?$#uD" }
protected _routes => array(0) protected _response => object Response(5){ protected _status => integer 200 protected _header => object HTTP_Header(0)
protected _header => object HTTP_Header(0){ }
protected _body => string(0) "" protected _cookies => array(0) protected _protocol => string(8) "HTTP/1.1" }{ }
protected _body => NULL protected _directory => string(0) "" protected _controller => string(5) "hotel" protected _action => string(4) "show" protected _uri => string(19) "hotels/show_24.html" protected _external => bool FALSE protected _params => array(1) ( "aid" => string(2) "24" ) protected _get => array(0) protected _post => array(0) protected _cookies => array(0) protected _client => object Request_Client_Internal(2){ protected _previous_environment => NULL protected _cache => NULL }
}1155 throw new Request_Exception('Unable to execute :uri without a Kohana_Request_Client', array( 1156 ':uri' => $this->_uri, 1157 )); 1158 } 1159 1160 return $this->_client->execute($this); 1161 } 1162 1163 /** 1164 * Returns whether this request is the initial request Kohana received. 1165 * Can be used to test for sub requests.
-
DOCROOT/index.php [ 142 ] » Kohana_Request->execute()
137 /** 138 * Execute the main request. A source of the URI can be passed, eg: $_SERVER['PATH_INFO']. 139 * If no source is specified, the URI will be automatically detected. 140 */ 141 echo Request::factory() 142 ->execute() 143 ->send_headers(TRUE) 144 ->body(); 145 146 }