MODPATH\cache\classes\kohana\cache\file.php [ 234 ]
229 chmod($directory, 0777);
230 }
231
232 // Open file to inspect
233 $resouce = new SplFileInfo($directory.$filename);
234 $file = $resouce->openFile('w');
235
236 try
237 {
238 $data = $lifetime."\n".serialize($data);
239 $file->fwrite($data, strlen($data));
-
MODPATH\cache\classes\kohana\cache\file.php [ 234 ] » SplFileInfo->openFile(arguments)
0
string(1) "w"
229 chmod($directory, 0777); 230 } 231 232 // Open file to inspect 233 $resouce = new SplFileInfo($directory.$filename); 234 $file = $resouce->openFile('w'); 235 236 try 237 { 238 $data = $lifetime."\n".serialize($data); 239 $file->fwrite($data, strlen($data));
-
APPPATH\classes\common.php [ 1367 ] » Kohana_Cache_File->set(arguments)
0
string(29) "http://www.foxota.com/dulesi/"
1
string(13186) "<!doctype html> <html> <head> <meta charset="utf-8"> <title>独乐寺目的地简介-狐狸旅行</title> <meta name="keywords" content="独乐寺" /> <met …"
2
integer 3600
1362 return $cache->get($key, ''); 1363 } 1364 //设置缓存 1365 else if ($type == 'set' && mb_stripos($value, '没有找到符合条件的产品') === false) 1366 { 1367 return $cache->set($key, $value, 3600); 1368 } 1369 1370 } 1371 1372 /**
-
DOCROOT\plugins\destination\classes\controller\pc\destination.php [ 88 ] » Common::cache(arguments)
0
string(3) "set"
1
string(29) "http://www.foxota.com/dulesi/"
2
string(13186) "<!doctype html> <html> <head> <meta charset="utf-8"> <title>独乐寺目的地简介-狐狸旅行</title> <meta name="keywords" content="独乐寺" /> <met …"
83 $templet = 'destination/main'; 84 } 85 $this->display($templet); 86 //缓存内容 87 $content = $this->response->body(); 88 Common::cache('set', $this->_cache_key, $content); 89 } 90 91 92 //酒店首页按目的地拼音获取目的地 93 public function action_ajax_dest_by_pinyin()
-
{PHP internal call} » Controller_Pc_Destination->action_main()
-
SYSPATH\classes\kohana\request\client\internal.php [ 116 ] » ReflectionMethod->invoke(arguments)
0
object Controller_Pc_Destination(7)
{ private typeid => integer 12 private _cache_key => string(29) "http://www.foxota.com/dulesi/" public _data => array(8) ( "cmsurl" => string(1) "/" "webname" => string(12) "狐狸旅行" "typeid" => integer 12 "channelname" => string(9) "目的地" "channel" => array(7) ( "destination" => array(2) ( "isopen" => string(1) "1" "channelname" => string(9) "目的地" ) "wenda" => array(2) ( "isopen" => string(1) "1" "channelname" => string(6) "问答" ) "article" => array(2) ( "isopen" => string(1) "1" "channelname" => string(6) "专栏" ) "customize" => array(2) ( "isopen" => string(1) "1" "channelname" => string(6) "定制" ) "outdoor" => array(2) ( "isopen" => string(1) "1" "channelname" => string(12) "旅行线路" ) "news" => array(2) ( "isopen" => string(1) "1" "channelname" => string(6) "猫影" ) "" => array(2) ( "isopen" => string(1) "1" "channelname" => string(6) "线路" ) ) "seoinfo" => array(3) ( "seotitle" => string(24) "独乐寺目的地简介" "keyword" => string(9) "独乐寺" "description" => string(24) "独乐寺目的地简介" ) "info" => array(25) ( "id" => string(3) "143" "kindname" => string(9) "独乐寺" "pid" => string(2) "52" "seotitle" => string(24) "独乐寺目的地简介" "keyword" => string(9) "独乐寺" "description" => string(24) "独乐寺目的地简介" "tagword" => string(9) "独乐寺" "jieshao" => string(883) "<p><span style="font-size: 16px;">独乐寺位于蓟县,始建于唐太宗贞观十年(公元636年),辽代统和二年(公元984年)重建。明万历、清顺治、乾隆、光绪年间维修,乾隆十八年(公元1753年)增砌照壁,增设观音阁重檐上下各四根擎 …" "kindtype" => NULL "isopen" => string(1) "1" "isfinishseo" => string(1) "0" "displayorder" => string(4) "9999" "isnav" => string(1) "1" "templetpath" => NULL "ishot" => string(1) "0" "litpic" => string(55) "/uploads/2018/0520/9a2d8e44b0cf9345012709ad65b408b0.jpg" "piclist" => string(72) "/uploads/2018/0520/9a2d8e44b0cf9345012709ad65b408b0.jpg||独乐寺缩略" "istopnav" => string(1) "0" "pinyin" => string(6) "dulesi" "templet" => string(0) "" "iswebsite" => string(1) "0" "weburl" => NULL "webroot" => NULL "webprefix" => NULL "opentypeids" => string(7) ",12,114" ) "templetdata" => array(7) ( "cmsurl" => string(1) "/" "webname" => string(12) "狐狸旅行" "typeid" => integer 12 "channelname" => string(9) "目的地" "channel" => array(7) ( "destination" => array(2) ( "isopen" => string(1) "1" "channelname" => string(9) "目的地" ) "wenda" => array(2) ( "isopen" => string(1) "1" "channelname" => string(6) "问答" ) "article" => array(2) ( "isopen" => string(1) "1" "channelname" => string(6) "专栏" ) "customize" => array(2) ( "isopen" => string(1) "1" "channelname" => string(6) "定制" ) "outdoor" => array(2) ( "isopen" => string(1) "1" "channelname" => string(12) "旅行线路" ) "news" => array(2) ( "isopen" => string(1) "1" "channelname" => string(6) "猫影" ) "" => array(2) ( "isopen" => string(1) "1" "channelname" => string(6) "线路" ) ) "seoinfo" => array(3) ( "seotitle" => string(24) "独乐寺目的地简介" "keyword" => string(9) "独乐寺" "description" => string(24) "独乐寺目的地简介" ) "info" => array(25) ( "id" => string(3) "143" "kindname" => string(9) "独乐寺" "pid" => string(2) "52" "seotitle" => string(24) "独乐寺目的地简介" "keyword" => string(9) "独乐寺" "description" => string(24) "独乐寺目的地简介" "tagword" => string(9) "独乐寺" "jieshao" => string(883) "<p><span style="font-size: 16px;">独乐寺位于蓟县,始建于唐太宗贞观十年(公元636年),辽代统和二年(公元984年)重建。明万历、清顺治、乾隆、光绪年间维修,乾隆十八年(公元1753年)增砌照壁,增设观音阁重檐上下各四根擎 …" "kindtype" => NULL "isopen" => string(1) "1" "isfinishseo" => string(1) "0" "displayorder" => string(4) "9999" "isnav" => string(1) "1" "templetpath" => NULL "ishot" => string(1) "0" "litpic" => string(55) "/uploads/2018/0520/9a2d8e44b0cf9345012709ad65b408b0.jpg" "piclist" => string(72) "/uploads/2018/0520/9a2d8e44b0cf9345012709ad65b408b0.jpg||独乐寺缩略" "istopnav" => string(1) "0" "pinyin" => string(6) "dulesi" "templet" => string(0) "" "iswebsite" => string(1) "0" "weburl" => NULL "webroot" => NULL "webprefix" => NULL "opentypeids" => string(7) ",12,114" ) ) ) 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(8) "<pinyin>" protected _regex => array(1) ( "pinyin" => string(12) "[a-zA-Z0-9]+" ) protected _defaults => array(3) ( "action" => string(4) "main" "directory" => string(2) "pc" "controller" => string(11) "destination" ) protected _route_regex => string(30) "#^(?P<pinyin>[a-zA-Z0-9]+)$#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(13186) "<!doctype html> <html> <head> <meta charset="utf-8"> <title>独乐寺目的地简介-狐狸旅行</title> <meta name="keywords" content="独乐寺" /> <met …" protected _cookies => array(0) protected _protocol => string(8) "HTTP/1.1" }{ }
protected _body => NULL protected _directory => string(2) "pc" protected _controller => string(11) "destination" protected _action => string(4) "main" protected _uri => string(6) "dulesi" protected _external => bool FALSE protected _params => array(1) ( "pinyin" => string(6) "dulesi" ) 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(13186) "<!doctype html> <html> <head> <meta charset="utf-8"> <title>独乐寺目的地简介-狐狸旅行</title> <meta name="keywords" content="独乐寺" /> <met …" 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(8) "<pinyin>" protected _regex => array(1) ( "pinyin" => string(12) "[a-zA-Z0-9]+" ) protected _defaults => array(3) ( "action" => string(4) "main" "directory" => string(2) "pc" "controller" => string(11) "destination" ) protected _route_regex => string(30) "#^(?P<pinyin>[a-zA-Z0-9]+)$#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(13186) "<!doctype html> <html> <head> <meta charset="utf-8"> <title>独乐寺目的地简介-狐狸旅行</title> <meta name="keywords" content="独乐寺" /> <met …" protected _cookies => array(0) protected _protocol => string(8) "HTTP/1.1" }{ }
protected _body => NULL protected _directory => string(2) "pc" protected _controller => string(11) "destination" protected _action => string(4) "main" protected _uri => string(6) "dulesi" protected _external => bool FALSE protected _params => array(1) ( "pinyin" => string(6) "dulesi" ) 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(8) "<pinyin>" protected _regex => array(1) ( "pinyin" => string(12) "[a-zA-Z0-9]+" ) protected _defaults => array(3) ( "action" => string(4) "main" "directory" => string(2) "pc" "controller" => string(11) "destination" ) protected _route_regex => string(30) "#^(?P<pinyin>[a-zA-Z0-9]+)$#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(13186) "<!doctype html> <html> <head> <meta charset="utf-8"> <title>独乐寺目的地简介-狐狸旅行</title> <meta name="keywords" content="独乐寺" /> <met …" protected _cookies => array(0) protected _protocol => string(8) "HTTP/1.1" }{ }
protected _body => NULL protected _directory => string(2) "pc" protected _controller => string(11) "destination" protected _action => string(4) "main" protected _uri => string(6) "dulesi" protected _external => bool FALSE protected _params => array(1) ( "pinyin" => string(6) "dulesi" ) 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 [ 141 ] » Kohana_Request->execute()
136 /** 137 * Execute the main request. A source of the URI can be passed, eg: $_SERVER['PATH_INFO']. 138 * If no source is specified, the URI will be automatically detected. 139 */ 140 echo Request::factory() 141 ->execute() 142 ->send_headers(TRUE) 143 ->body(); 144 145 }