MODPATH/database/classes/Kohana/Database.php [ 65 ]
60 if ( ! isset(Database::$instances[$name]))
61 {
62 if ($config === NULL)
63 {
64 // Load the configuration for this database
65 $config = Kohana::$config->load('database')->$name;
66 }
67
68 if ( ! isset($config['type']))
69 {
70 throw new Kohana_Exception('Database type not defined in :name configuration',
-
MODPATH/database/classes/Kohana/Database.php [ 65 ] » Kohana_Core::error_handler(arguments)
0
integer 8
1
string(27) "Undefined index: db_Website"
2
string(67) "/data/web/yuguang/main/modules/database/classes/Kohana/Database.php"
3
integer 65
4
array(3) ( "name" => string(10) "db_Website" "config" => NULL "persistent" => bool FALSE )
60 if ( ! isset(Database::$instances[$name])) 61 { 62 if ($config === NULL) 63 { 64 // Load the configuration for this database 65 $config = Kohana::$config->load('database')->$name; 66 } 67 68 if ( ! isset($config['type'])) 69 { 70 throw new Kohana_Exception('Database type not defined in :name configuration',
-
MODPATH/database/classes/Kohana/Database/Query.php [ 220 ] » Kohana_Database::instance(arguments)
0
string(10) "db_Website"
1
NULL
2
bool FALSE
215 public function execute($db = NULL, $as_object = NULL, $object_params = NULL, $persistent = FALSE) 216 { 217 if ( ! is_object($db)) 218 { 219 // Get the database instance 220 $db = Database::instance($db,NULL,$persistent); 221 } 222 223 if ($as_object === NULL) 224 { 225 $as_object = $this->_as_object;
-
MODPATH/yuguangpc/classes/Model/Marticlecate.php [ 148 ] » Kohana_Database_Query->execute(arguments)
0
string(10) "db_Website"
143 $articleCateChildKey=$this->ArticleCateChildKey.$articleCateId; 144 $acticleCatecache=$this->_redis->get($articleCateChildKey); 145 if($acticleCatecache){// 146 $re=json_decode($acticleCatecache,TRUE); 147 }else{ 148 $articleChildCat=DB::select('pid','name','id','url')->from($this->table)->where('pid','=',$articleCateId)->execute(DB_WEBSITE)->as_array(); 149 //通过父节点获取子节点in查找 150 $re['articleCateChild']=$articleChildCat; 151 $articleChildId=array(); 152 $articleChildId[]=$articleCateId; 153 foreach($articleChildCat as $articleCkey=>$articleCval){
-
MODPATH/yuguangpc/classes/Controller/Summercamp.php [ 120 ] » Model_Marticlecate->getChildList(arguments)
0
integer 6
115 } 116 /*$curr=$this->msnav->getNavById($baikeId);//当前id对应的数据 117 118 $hereurl=$this->msnav->getUrl($curr['id']); 119 $this->data['hereurl']=$hereurl;*/ 120 $navRe=$this->marticlecate->getChildList(6); 121 $this->data['articleCateChild']=$navRe['articleCateChild']; 122 $this->finalviewname = 'wyouxue/summercamp/baikelist'; 123 124 $w=array(); 125 !empty($baikeId)&&array_push($w, array('filed'=>'articleCateId','value'=>$baikeId,'sem'=>'='));
-
SYSPATH/classes/Kohana/Controller.php [ 84 ] » Controller_Summercamp->action_baikelist()
79 array(':uri' => $this->request->uri()) 80 )->request($this->request); 81 } 82 83 // Execute the action itself 84 $this->{$action}(); 85 86 // Execute the "after action" method 87 $this->after(); 88 89 // Return the response
-
{PHP internal call} » Kohana_Controller->execute()
-
SYSPATH/classes/Kohana/Request/Client/Internal.php [ 97 ] » ReflectionMethod->invoke(arguments)
0
object Controller_Summercamp(15)
{ private marticlecate => object Model_Marticlecate(12)
{ private table => string(15) "my_article_cate" private primary_id => string(2) "id" private url => string(0) "" private _redis => object Redis(1)
private mproduct => object Model_Mproduct(9){ public socket => resource(Redis Socket Buffer) }
private SingleCateHere => string(14) "SingleCateHere" private SingleArticleCateKey => string(20) "SingleArticleCateKey" private ArticleCateChildKey => string(19) "ArticleCateChildKey" private BaikeblockList => string(14) "BaikeblockList" private HomeArticleList => string(15) "HomeArticleList" private HomeArticleConKey => string(17) "HomeArticleConKey" private RlateArticleKey => string(15) "RlateArticleKey" protected _db => object Database_MySQL(6){ protected _connection_id => NULL protected _identifier => string(1) "`" public last_query => NULL protected _instance => string(7) "default" protected _connection => NULL protected _config => array(6) ( "type" => string(5) "MySQL" "connection" => array(5) ( "hostname" => string(9) "127.0.0.1" "database" => string(8) "my_movie" "username" => string(4) "root" "password" => string(11) "5lux.com@sd" "persistent" => bool FALSE ) "table_prefix" => string(0) "" "charset" => string(4) "utf8" "caching" => bool FALSE "profiling" => bool TRUE ) }
}{ private table => string(10) "my_product" private primary_id => string(2) "id" private ProCountKey => string(11) "ProCountKey" private ProPageKey => string(10) "ProPageKey" private SingleProKey => string(12) "SingleProKey" private CampRightListKey => string(16) "CampRightListKey" private _redis => object Redis(1)
private marticle => object Model_Mwarticle(10){ public socket => resource(Redis Socket Buffer) }
protected _db => object Database_MySQL(6){ protected _connection_id => NULL protected _identifier => string(1) "`" public last_query => NULL protected _instance => string(7) "default" protected _connection => NULL protected _config => array(6) ( "type" => string(5) "MySQL" "connection" => array(5) ( "hostname" => string(9) "127.0.0.1" "database" => string(8) "my_movie" "username" => string(4) "root" "password" => string(11) "5lux.com@sd" "persistent" => bool FALSE ) "table_prefix" => string(0) "" "charset" => string(4) "utf8" "caching" => bool FALSE "profiling" => bool TRUE ) }
public tree => object tree(4){ public arr => array(0) public icon => array(3) ( 0 => string(22) " │ " 1 => string(25) " ├─ " 2 => string(25) " └─ " ) public nbsp => string(18) " " public ret => string(0) "" }
}{ private table => string(16) "my_article_title" private msnav => NULL private _redis => object Redis(1)
public finalautorender => bool TRUE public finalviewname => string(5) "index" public forceajax => bool FALSE public data => array(3) ( "puts" => array(1) ( "id" => string(2) "25" ) "key" => string(6) "sbaike" "breadcrumbs" => string(192) "<a href="http://www.yuguangedu.cn/summercamp/baike/6">夏令营百科</a>> <a href="http://www.yugu …" ) public baseurl => string(25) "http://www.yuguangedu.cn/" private _sign_secret => string(6) "darwin" public _atoken => NULL public _city => string(7) "beijing" public _cityName => string(0) "" public request => object Request(19){ public socket => resource(Redis Socket Buffer) }
private primary_id => string(2) "id" private ArticleCountKey => string(15) "ArticleCountKey" private ArticlePageKey => string(14) "ArticlePageKey" private SingleArticleKey => string(16) "SingleArticleKey" private PrevArticleKey => string(14) "PrevArticleKey" private NextArticleKey => string(14) "NextArticleKey" protected _db => object Database_MySQL(6){ protected _connection_id => NULL protected _identifier => string(1) "`" public last_query => NULL protected _instance => string(7) "default" protected _connection => NULL protected _config => array(6) ( "type" => string(5) "MySQL" "connection" => array(5) ( "hostname" => string(9) "127.0.0.1" "database" => string(8) "my_movie" "username" => string(4) "root" "password" => string(11) "5lux.com@sd" "persistent" => bool FALSE ) "table_prefix" => string(0) "" "charset" => string(4) "utf8" "caching" => bool FALSE "profiling" => bool TRUE ) }
}{ 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 _filters => array(0) protected _uri => string(28) "summercamp(/<action>(/<id>))" protected _regex => array(0) protected _defaults => array(3) ( "controller" => string(10) "summercamp" "action" => string(5) "index" "id" => string(1) "0" ) protected _route_regex => string(72) "#^summercamp(?:/(?P<action>[^/.,;?\n]++)(?:/(?P<id>[^/.,;?\n]++))?)?$#uD" }
protected _routes => array(0) protected _header => object HTTP_Header(0){ }
protected _body => NULL protected _directory => string(0) "" protected _controller => string(10) "Summercamp" protected _action => string(9) "baikelist" protected _uri => string(23) "summercamp/baikelist/25" protected _external => bool FALSE protected _params => array(1) ( "id" => string(2) "25" ) protected _get => array(0) protected _post => array(0) protected _cookies => array(0) protected _client => object Request_Client_Internal(9){ protected _previous_environment => NULL protected _cache => NULL protected _follow => bool FALSE protected _follow_headers => array(1) ( 0 => string(13) "Authorization" ) protected _strict_redirect => bool TRUE protected _header_callbacks => array(1) ( "Location" => string(34) "Request_Client::on_header_location" ) protected _max_callback_depth => integer 5 protected _callback_depth => integer 1 protected _callback_params => array(0) }
}{ protected _status => integer 200 protected _header => object HTTP_Header(0)
public auto_render => bool FALSE }{ }
protected _body => string(0) "" protected _cookies => array(0) protected _protocol => string(8) "HTTP/1.1" }92 93 // Create a new instance of the controller 94 $controller = $class->newInstance($request, $response); 95 96 // Run the controller's execute() method 97 $response = $class->getMethod('execute')->invoke($controller); 98 99 if ( ! $response instanceof Response) 100 { 101 // Controller failed to return a Response. 102 throw new Kohana_Exception('Controller failed to return a Response');
-
SYSPATH/classes/Kohana/Request/Client.php [ 114 ] » Kohana_Request_Client_Internal->execute_request(arguments)
0
object Request(19)
{ 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 _filters => array(0) protected _uri => string(28) "summercamp(/<action>(/<id>))" protected _regex => array(0) protected _defaults => array(3) ( "controller" => string(10) "summercamp" "action" => string(5) "index" "id" => string(1) "0" ) protected _route_regex => string(72) "#^summercamp(?:/(?P<action>[^/.,;?\n]++)(?:/(?P<id>[^/.,;?\n]++))?)?$#uD" }
protected _routes => array(0) protected _header => object HTTP_Header(0){ }
protected _body => NULL protected _directory => string(0) "" protected _controller => string(10) "Summercamp" protected _action => string(9) "baikelist" protected _uri => string(23) "summercamp/baikelist/25" protected _external => bool FALSE protected _params => array(1) ( "id" => string(2) "25" ) protected _get => array(0) protected _post => array(0) protected _cookies => array(0) protected _client => object Request_Client_Internal(9){ protected _previous_environment => NULL protected _cache => NULL protected _follow => bool FALSE protected _follow_headers => array(1) ( 0 => string(13) "Authorization" ) protected _strict_redirect => bool TRUE protected _header_callbacks => array(1) ( "Location" => string(34) "Request_Client::on_header_location" ) protected _max_callback_depth => integer 5 protected _callback_depth => integer 1 protected _callback_params => array(0) }
}1
object Response(5)
{ 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" }109 $orig_response = $response = Response::factory(array('_protocol' => $request->protocol())); 110 111 if (($cache = $this->cache()) instanceof HTTP_Cache) 112 return $cache->execute($this, $request, $response); 113 114 $response = $this->execute_request($request, $response); 115 116 // Execute response callbacks 117 foreach ($this->header_callbacks() as $header => $callback) 118 { 119 if ($response->headers($header))
-
SYSPATH/classes/Kohana/Request.php [ 986 ] » Kohana_Request_Client->execute(arguments)
0
object Request(19)
{ 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 _filters => array(0) protected _uri => string(28) "summercamp(/<action>(/<id>))" protected _regex => array(0) protected _defaults => array(3) ( "controller" => string(10) "summercamp" "action" => string(5) "index" "id" => string(1) "0" ) protected _route_regex => string(72) "#^summercamp(?:/(?P<action>[^/.,;?\n]++)(?:/(?P<id>[^/.,;?\n]++))?)?$#uD" }
protected _routes => array(0) protected _header => object HTTP_Header(0){ }
protected _body => NULL protected _directory => string(0) "" protected _controller => string(10) "Summercamp" protected _action => string(9) "baikelist" protected _uri => string(23) "summercamp/baikelist/25" protected _external => bool FALSE protected _params => array(1) ( "id" => string(2) "25" ) protected _get => array(0) protected _post => array(0) protected _cookies => array(0) protected _client => object Request_Client_Internal(9){ protected _previous_environment => NULL protected _cache => NULL protected _follow => bool FALSE protected _follow_headers => array(1) ( 0 => string(13) "Authorization" ) protected _strict_redirect => bool TRUE protected _header_callbacks => array(1) ( "Location" => string(34) "Request_Client::on_header_location" ) protected _max_callback_depth => integer 5 protected _callback_depth => integer 1 protected _callback_params => array(0) }
}981 throw new Request_Exception('Unable to execute :uri without a Kohana_Request_Client', array( 982 ':uri' => $this->_uri, 983 )); 984 } 985 986 return $this->_client->execute($this); 987 } 988 989 /** 990 * Returns whether this request is the initial request Kohana received. 991 * Can be used to test for sub requests.
-
DOCROOT/index.php [ 150 ] » Kohana_Request->execute()
145 /** 146 * Execute the main request. A source of the URI can be passed, eg: $_SERVER['PATH_INFO']. 147 * If no source is specified, the URI will be automatically detected. 148 */ 149 echo Request::factory(TRUE, array(), FALSE) 150 ->execute() 151 ->send_headers(TRUE) 152 ->body(); 153 }