MODPATH/database/classes/kohana/database/pdo.php [ 160 ]
155 // This benchmark is worthless
156 Profiler::delete($benchmark);
157 }
158
159 // Convert the exception in a database exception
160 throw new Database_Exception(':error [ :query ]',
161 array(
162 ':error' => $e->getMessage(),
163 ':query' => $sql
164 ),
165 $e->getCode());
-
MODPATH/database/classes/kohana/database/query.php [ 275 ] » Kohana_Database_PDO->query(arguments)
0
integer 1
1
string(833) "SELECT a.id, a.webid, a.sellpoint, …"
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/taglib/car.php [ 377 ] » Kohana_Database_Query->execute()
372 { 373 $sql = "SELECT " . self::$basefield . " FROM sline_car a "; 374 $sql .= "LEFT JOIN `sline_allorderlist` b "; 375 $sql .= "ON (a.id=b.aid and b.typeid=3) "; 376 $sql .= "WHERE a.ishidden=0 AND FIND_IN_SET($themeid,a.themelist) ORDER BY IFNULL(b.displayorder,9999) asc,a.modtime desc,a.addtime DESC "; 377 return DB::query(1, $sql)->execute()->as_array(); 378 379 } 380 381 /** 382 * 获取租车的价格区间
-
DOCROOT/plugins/car/classes/taglib/car.php [ 98 ] » Taglib_Car::get_car_by_themeid(arguments)
0
string(1) "6"
1
integer 0
2
NULL
93 break; 94 case 'tagrelative': 95 $list = self::get_car_by_tagword($row, $offset, $tagword); 96 break; 97 case 'theme': 98 $list = self::get_car_by_themeid($row, $offset, $themeid); 99 break; 100 101 } 102 foreach ($list as $k => &$v) 103 {
-
DOCROOT/data/cache/v5/tplcache/default/zhuanti/index.php [ 125 ] » Taglib_Car::query(arguments)
0
array(9) ( "row" => string(1) "6" "offset" => integer 0 "flag" => string(5) "theme" "kindid" => integer 0 "tagword" => string(0) "" "supplierid" => integer 0 "action" => string(5) "query" "themeid" => NULL "return" => string(7) "carlist" )
120 <a target="_blank" href="<?php echo $hotelad['adlink'];?>"><img src="<?php echo Common::img($hotelad['adsrc'],229,613);?>" alt="<?php echo $hotelad['adname'];?>"/></a><?php } ?> 121 </div> 122 </div> 123 </div><!-- 产品列表 --> 124 <?php } ?> 125 <?php $car_tag = new Taglib_Car();if (method_exists($car_tag, 'query')) {$carlist = $car_tag->query(array('action'=>'query','flag'=>'theme','themeid'=>$info['id'],'row'=>'6','return'=>'carlist',));}?> 126 <?php if(count($carlist)>0) { ?> 127 <div class="st-theme-cpbox"> 128 <div class="cp-tit"><strong><?php echo __('推荐车辆');?></strong><a class="g_more" target="_blank" href="/cars/all-0-4-0-1"><?php echo __('查看更多');?></a></div> 129 <div class="cp-conbox"> 130 <?php require_once ("/www/wwwroot/www.tycts.com/taglib/ad.php");$ad_tag = new Taglib_Ad();if (method_exists($ad_tag, 'getad')) {$carad = $ad_tag->getad(array('action'=>'getad','name'=>'zt_car_ad','row'=>'1','pc'=>'1','return'=>'carad',));}?>
-
APPPATH/classes/stourweb/view.php [ 65 ] » include(arguments)
0
string(75) "/www/wwwroot/www.tycts.com/data/cache/v5/tplcache/default/zhuanti/index.php"
60 $file_content = self::get_file($kohana_view_filename); 61 $new_content = self::compile_template($file_content, $this->_data); 62 //$new_content = self::compress_html($new_content); 63 self::write_file($to, $new_content);//写缓存文件. 64 } 65 include($to); 66 } 67 else if ($this->_innertext !== NULL) 68 { 69 $to = $tpl_cache_dir . $this->_innertex_name . '.php'; 70 $new_content = self::compile_template($this->_innertext, $this->_data);
-
DOCROOT/tools/classes/class/view.php [ 420 ] » Stourweb_View->capture(arguments)
0
string(61) "/www/wwwroot/www.tycts.com/v5/views/default/zhuanti/index.php"
1
array(6) ( "cmsurl" => string(1) "/" "webname" => string(24) "太原市中国旅行社" "typeid" => integer 0 "seoinfo" => array(3) ( "seotitle" => string(0) "" "keyword" => string(0) "" "description" => string(0) "" ) "info" => array(22) ( "id" => NULL "aid" => NULL "webid" => NULL "ztname" => NULL "seotitle" => NULL "shortname" => NULL "keyword" => NULL "description" => NULL "logo" => NULL "jieshao" => NULL "bgcolor" => NULL "bgimage" => NULL "templetpath" => NULL "kindlist" => NULL "tagword" => NULL "shownum" => NULL "displayorder" => NULL "addtime" => NULL "modtime" => NULL "isopen" => NULL "templet" => NULL "title" => NULL ) "templetdata" => array(5) ( "cmsurl" => string(1) "/" "webname" => string(24) "太原市中国旅行社" "typeid" => integer 0 "seoinfo" => array(3) ( "seotitle" => string(0) "" "keyword" => string(0) "" "description" => string(0) "" ) "info" => array(22) ( "id" => NULL "aid" => NULL "webid" => NULL "ztname" => NULL "seotitle" => NULL "shortname" => NULL "keyword" => NULL "description" => NULL "logo" => NULL "jieshao" => NULL "bgcolor" => NULL "bgimage" => NULL "templetpath" => NULL "kindlist" => NULL "tagword" => NULL "shownum" => NULL "displayorder" => NULL "addtime" => NULL "modtime" => NULL "isopen" => NULL "templet" => NULL "title" => NULL ) ) )
-
APPPATH/classes/stourweb/controller.php [ 114 ] » Class_View->render()
109 $view->set($key, $value); 110 $view->set_global($key, $value); 111 } 112 113 114 $this->response->body($view->render()); 115 116 117 } 118 }
-
APPPATH/classes/controller/zhuanti.php [ 59 ] » Stourweb_Controller->display(arguments)
0
string(13) "zhuanti/index"
54 else 55 { 56 $templet.='/index'; 57 } 58 $this->assign('info',$info); 59 $this->display($templet); 60 //缓存内容 61 $content = $this->response->body(); 62 Common::cache('set',$this->_cache_key,$content); 63 } 64
-
{PHP internal call} » Controller_Zhuanti->action_index()
-
SYSPATH/classes/kohana/request/client/internal.php [ 116 ] » ReflectionMethod->invoke(arguments)
0
object Controller_Zhuanti(7)
{ private typeid => integer 0 private _cache_key => string(36) "http://www.tycts.com/zhuanti/18.html" protected cmsurl => string(1) "/" public _data => array(6) ( "cmsurl" => string(1) "/" "webname" => string(24) "太原市中国旅行社" "typeid" => integer 0 "seoinfo" => array(3) ( "seotitle" => string(0) "" "keyword" => string(0) "" "description" => string(0) "" ) "info" => array(22) ( "id" => NULL "aid" => NULL "webid" => NULL "ztname" => NULL "seotitle" => NULL "shortname" => NULL "keyword" => NULL "description" => NULL "logo" => NULL "jieshao" => NULL "bgcolor" => NULL "bgimage" => NULL "templetpath" => NULL "kindlist" => NULL "tagword" => NULL "shownum" => NULL "displayorder" => NULL "addtime" => NULL "modtime" => NULL "isopen" => NULL "templet" => NULL "title" => NULL ) "templetdata" => array(5) ( "cmsurl" => string(1) "/" "webname" => string(24) "太原市中国旅行社" "typeid" => integer 0 "seoinfo" => array(3) ( "seotitle" => string(0) "" "keyword" => string(0) "" "description" => string(0) "" ) "info" => array(22) ( "id" => NULL "aid" => NULL "webid" => NULL "ztname" => NULL "seotitle" => NULL "shortname" => NULL "keyword" => NULL "description" => NULL "logo" => NULL "jieshao" => NULL "bgcolor" => NULL "bgimage" => NULL "templetpath" => NULL "kindlist" => NULL "tagword" => NULL "shownum" => NULL "displayorder" => NULL "addtime" => NULL "modtime" => NULL "isopen" => NULL "templet" => NULL "title" => NULL ) ) ) 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.1" protected _secure => bool FALSE protected _referrer => NULL protected _route => object Route(5)
public response => object Response(5){ protected _callback => NULL protected _uri => string(18) "zhuanti/<tid>.html" protected _regex => array(1) ( "tid" => string(3) "\d+" ) protected _defaults => array(2) ( "controller" => string(7) "zhuanti" "action" => string(5) "index" ) protected _route_regex => string(32) "#^zhuanti/(?P<tid>\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(7) "zhuanti" protected _action => string(5) "index" protected _uri => string(15) "zhuanti/18.html" protected _external => bool FALSE protected _params => array(1) ( "tid" => string(2) "18" ) 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(18) "zhuanti/<tid>.html" protected _regex => array(1) ( "tid" => string(3) "\d+" ) protected _defaults => array(2) ( "controller" => string(7) "zhuanti" "action" => string(5) "index" ) protected _route_regex => string(32) "#^zhuanti/(?P<tid>\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(7) "zhuanti" protected _action => string(5) "index" protected _uri => string(15) "zhuanti/18.html" protected _external => bool FALSE protected _params => array(1) ( "tid" => string(2) "18" ) 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(18) "zhuanti/<tid>.html" protected _regex => array(1) ( "tid" => string(3) "\d+" ) protected _defaults => array(2) ( "controller" => string(7) "zhuanti" "action" => string(5) "index" ) protected _route_regex => string(32) "#^zhuanti/(?P<tid>\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(7) "zhuanti" protected _action => string(5) "index" protected _uri => string(15) "zhuanti/18.html" protected _external => bool FALSE protected _params => array(1) ( "tid" => string(2) "18" ) 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 [ 135 ] » Kohana_Request->execute()
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() 135 ->execute() 136 ->send_headers(TRUE) 137 ->body(); 138 139 }