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 [ 275 ] » Kohana_Database_MySQL->query(arguments)
0
integer 1
1
string(349) "SELECT count(*) as dd FROM `sline_car` a LEFT JOIN `sline_kindorderlist` b ON (a.id=b.aid AND b.typeid=3 AND b.classid=2) LEFT …"
2
bool FALSE
3
array(0)
270 return new Database_Result_Cached($result, $sql, $as_object, $object_params); 271 } 272 } 273 274 // Execute the query 275 $result = $db->query($this->_type, $sql, $as_object, $object_params); 276 277 if (isset($cache_key) AND $this->_lifetime > 0) 278 { 279 // Cache the result array 280 Kohana::cache($cache_key, $result->as_array(), $this->_lifetime);
-
DOCROOT/plugins/car/classes/model/car.php [ 444 ] » Kohana_Database_Query->execute()
439 //计算总数 440 $totalSql = "SELECT count(*) as dd " . strchr($sql, " FROM"); 441 $totalSql = str_replace(strchr($totalSql, "ORDER BY"), '', $totalSql);//去掉order by 442 443 444 $totalN = DB::query(1, $totalSql)->parameters($value_arr)->execute()->as_array(); 445 $totalNum = $totalN[0]['dd'] ? $totalN[0]['dd'] : 0; 446 447 $sql .= "LIMIT {$offset},{$pagesize}"; 448 $arr = DB::query(1, $sql)->parameters($value_arr)->execute()->as_array(); 449 foreach ($arr as &$v)
-
DOCROOT/plugins/car/classes/controller/pc/car.php [ 179 ] » Model_Car::search_result(arguments)
0
array(10) ( "controller" => string(3) "car" "action" => string(4) "list" "destpy" => string(2) "cd" "carkindid" => integer 0 "sorttype" => integer 0 "attrid" => integer 0 "priceid" => integer 2 "p" => integer 1 "keyword" => string(0) "" "channel_name" => string(6) "租车" )
1
string(0) ""
2
integer 1
3
integer 12
174 'keyword' => $keyword, 175 'channel_name' => $channel_name 176 ); 177 //$start_time=microtime(true); //获取程序开始执行的时间 178 179 $out = Model_Car::search_result($route_array, $keyword, $p, $pagesize); 180 $pager = Pagination::factory( 181 array( 182 183 'current_page' => array('source' => 'route', 'key' => 'p'), 184 'view' => 'default/pagination/search',
-
{PHP internal call} » Controller_Pc_Car->action_list()
-
SYSPATH/classes/kohana/request/client/internal.php [ 116 ] » ReflectionMethod->invoke(arguments)
0
object Controller_Pc_Car(7)
{ private _typeid => integer 3 private _cache_key => string(39) "https://xc.aiketour.com/cars/cd-0-0-0-2" protected cmsurl => string(1) "/" public _data => array(4) ( "cmsurl" => string(1) "/" "webname" => string(12) "爱客纯玩" "typeid" => integer 3 "channelname" => string(6) "租车" ) public params => array(1) ( "" => integer 0 ) public request => object Request(20)
{ protected _requested_with => NULL protected _method => string(3) "GET" protected _protocol => string(8) "HTTP/1.0" protected _secure => bool FALSE protected _referrer => string(38) "http://xc.aiketour.com/cars/cd-0-0-0-2" protected _route => object Route(5)
public response => object Response(5){ protected _callback => NULL protected _uri => string(79) "cars/(<destpy>)(<sign>)(-<carkindid>)(-<sorttype>)(-<attrid>)(-<priceid>)(-<p>)" protected _regex => array(7) ( "destpy" => string(12) "[0-9a-zA-Z]+" "sign" => string(3) "\/?" "carkindid" => string(6) "[0-9]+" "sorttype" => string(6) "[0-9]+" "attrid" => string(7) "[0-9_]+" "priceid" => string(6) "[0-9]+" "p" => string(6) "[0-9]+" ) protected _defaults => array(3) ( "controller" => string(3) "car" "action" => string(4) "list" "directory" => string(2) "pc" ) protected _route_regex => string(180) "#^cars/(?:(?P<destpy>[0-9a-zA-Z]+))?(?:(?P<sign>\/?))?(?:-(?P<carkindid>[0-9]+))?(?:-(?P<sorttype>[0-9]+))?(?:-(?P<attrid>[0-9_] …" }
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.0" }{ }
protected _body => NULL protected _directory => string(2) "pc" protected _controller => string(3) "car" protected _action => string(4) "list" protected _uri => string(15) "cars/cd-0-0-0-2" protected _external => bool FALSE protected _params => array(6) ( "destpy" => string(2) "cd" "sign" => string(0) "" "carkindid" => string(1) "0" "sorttype" => string(1) "0" "attrid" => string(1) "0" "priceid" => string(1) "2" ) 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.0" }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.0" protected _secure => bool FALSE protected _referrer => string(38) "http://xc.aiketour.com/cars/cd-0-0-0-2" protected _route => object Route(5)
{ protected _callback => NULL protected _uri => string(79) "cars/(<destpy>)(<sign>)(-<carkindid>)(-<sorttype>)(-<attrid>)(-<priceid>)(-<p>)" protected _regex => array(7) ( "destpy" => string(12) "[0-9a-zA-Z]+" "sign" => string(3) "\/?" "carkindid" => string(6) "[0-9]+" "sorttype" => string(6) "[0-9]+" "attrid" => string(7) "[0-9_]+" "priceid" => string(6) "[0-9]+" "p" => string(6) "[0-9]+" ) protected _defaults => array(3) ( "controller" => string(3) "car" "action" => string(4) "list" "directory" => string(2) "pc" ) protected _route_regex => string(180) "#^cars/(?:(?P<destpy>[0-9a-zA-Z]+))?(?:(?P<sign>\/?))?(?:-(?P<carkindid>[0-9]+))?(?:-(?P<sorttype>[0-9]+))?(?:-(?P<attrid>[0-9_] …" }
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.0" }{ }
protected _body => NULL protected _directory => string(2) "pc" protected _controller => string(3) "car" protected _action => string(4) "list" protected _uri => string(15) "cars/cd-0-0-0-2" protected _external => bool FALSE protected _params => array(6) ( "destpy" => string(2) "cd" "sign" => string(0) "" "carkindid" => string(1) "0" "sorttype" => string(1) "0" "attrid" => string(1) "0" "priceid" => string(1) "2" ) 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.0" protected _secure => bool FALSE protected _referrer => string(38) "http://xc.aiketour.com/cars/cd-0-0-0-2" protected _route => object Route(5)
{ protected _callback => NULL protected _uri => string(79) "cars/(<destpy>)(<sign>)(-<carkindid>)(-<sorttype>)(-<attrid>)(-<priceid>)(-<p>)" protected _regex => array(7) ( "destpy" => string(12) "[0-9a-zA-Z]+" "sign" => string(3) "\/?" "carkindid" => string(6) "[0-9]+" "sorttype" => string(6) "[0-9]+" "attrid" => string(7) "[0-9_]+" "priceid" => string(6) "[0-9]+" "p" => string(6) "[0-9]+" ) protected _defaults => array(3) ( "controller" => string(3) "car" "action" => string(4) "list" "directory" => string(2) "pc" ) protected _route_regex => string(180) "#^cars/(?:(?P<destpy>[0-9a-zA-Z]+))?(?:(?P<sign>\/?))?(?:-(?P<carkindid>[0-9]+))?(?:-(?P<sorttype>[0-9]+))?(?:-(?P<attrid>[0-9_] …" }
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.0" }{ }
protected _body => NULL protected _directory => string(2) "pc" protected _controller => string(3) "car" protected _action => string(4) "list" protected _uri => string(15) "cars/cd-0-0-0-2" protected _external => bool FALSE protected _params => array(6) ( "destpy" => string(2) "cd" "sign" => string(0) "" "carkindid" => string(1) "0" "sorttype" => string(1) "0" "attrid" => string(1) "0" "priceid" => string(1) "2" ) 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 [ 136 ] » Kohana_Request->execute()
131 /** 132 * Execute the main request. A source of the URI can be passed, eg: $_SERVER['PATH_INFO']. 133 * If no source is specified, the URI will be automatically detected. 134 */ 135 echo Request::factory() 136 ->execute() 137 ->send_headers(TRUE) 138 ->body(); 139 140 }