MODPATH/cache/classes/Kohana/Cache/File.php [ 151 ]
146 $lifetime = $data->fgets();
147
148 // If we're at the EOF at this point, corrupted!
149 if ($data->eof())
150 {
151 throw new Cache_Exception(__METHOD__.' corrupted cache file!');
152 }
153
154 $cache = '';
155
156 while ($data->eof() === FALSE)
-
APPPATH/classes/Model/Category.php [ 152 ] » Kohana_Cache_File->get(arguments)
0
string(20) "parent_category_1_1_"
1
array(0)
147 */ 148 public function get_parent_category($category_id, $recursive = FALSE,$self = FALSE) 149 { 150 $cache = Cache::instance(); 151 152 $result = $cache->get('parent_category_'.$category_id.'_'.$recursive.'_'.$self,array()); 153 154 if(empty($result)) 155 { 156 $category = $this->find_one(array(array('id', '=', $category_id), array('enable', '=', 1))); 157 if (!empty($category))
-
APPPATH/classes/Controller/Newarrivals.php [ 38 ] » Model_Category->get_parent_category(arguments)
0
string(1) "1"
1
bool TRUE
33 } 34 //获取分类下attributes 35 $cat_id = $category['id']; 36 $attributes = $attributes_model->get_category_attributes($cat_id); 37 if($category['pid']!=1){ 38 $category_tree = $this->category_model->get_parent_category($cat_id,true); 39 } 40 //将所有子分类加入attributes 41 $sub_category = $this->category_model->get_sub_category($cat_id,true); 42 $categorys = array(); 43 if(!empty($sub_category)){
-
SYSPATH/classes/Kohana/Controller.php [ 84 ] » Controller_Newarrivals->action_index()
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_Newarrivals(19)
{ protected category_model => object Model_Category(3)
{ protected table => string(8) "category" public all_category_tree => array(0) protected _db => object Database_Mysql(6)
public content => NULL public session => object Session_Native(5){ protected _connection_id => string(40) "9a030d997faf285301aae416d361b59e327f8507" protected _identifier => string(1) "`" public last_query => string(61) "SELECT * FROM `category` WHERE `url` = 'all' AND `enable` = 1" 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(6) "acevog" "persistent" => bool FALSE ) "table_prefix" => string(0) "" "charset" => string(4) "utf8" "caching" => bool FALSE "profiling" => bool TRUE ) }
}{ protected _name => string(9) "wbsession" protected _lifetime => integer 0 protected _encrypted => bool FALSE protected _data => array(1) ( "currency" => array(13) ( "id" => string(1) "1" "name" => string(20) "United States dollar" "code" => string(3) "USD" "sign_left" => string(1) "$" "sign_right" => string(0) "" "decimal_point" => string(1) "." "thousands_point" => string(1) "," "decimal_places" => string(1) "2" "rate" => string(10) "1.00000000" "status" => string(1) "1" "default" => string(1) "1" "created" => string(1) "0" "updated" => string(10) "1433299578" ) ) protected _destroyed => bool FALSE }
public user => NULL public breadcrumb => array(0) public is_logged => bool FALSE public ga => bool FALSE public image_path => string(13) "media/images/" public title => string(0) "" public meta_description => string(0) "" public meta_keywords => string(0) "" public language => string(2) "en" public template => object View(2){ protected _file => string(58) "/data/htdocs/www.acevog.com/application/views/template.php" protected _data => array(0) }
public auto_render => bool TRUE public request => 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)
public response => object Response(5){ protected _filters => array(0) protected _uri => string(32) "(<controller>(/<action>(/<id>)))" protected _regex => array(0) protected _defaults => array(2) ( "controller" => string(4) "site" "action" => string(5) "index" ) protected _route_regex => string(95) "#^(?:(?P<controller>[^/.,;?\n]++)(?:/(?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(11) "Newarrivals" protected _action => string(5) "index" protected _uri => string(11) "newarrivals" protected _external => bool FALSE protected _params => array(0) protected _get => array(3) ( "kohana_uri" => string(12) "/newarrivals" "cat" => string(3) "309" "s" => string(3) "186" ) 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 secure => bool FALSE public currency => array(13) ( "id" => string(1) "1" "name" => string(20) "United States dollar" "code" => string(3) "USD" "sign_left" => string(1) "$" "sign_right" => string(0) "" "decimal_point" => string(1) "." "thousands_point" => string(1) "," "decimal_places" => string(1) "2" "rate" => string(10) "1.00000000" "status" => string(1) "1" "default" => string(1) "1" "created" => string(1) "0" "updated" => string(10) "1433299578" ) public protocol => string(4) "http" }{ }
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(32) "(<controller>(/<action>(/<id>)))" protected _regex => array(0) protected _defaults => array(2) ( "controller" => string(4) "site" "action" => string(5) "index" ) protected _route_regex => string(95) "#^(?:(?P<controller>[^/.,;?\n]++)(?:/(?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(11) "Newarrivals" protected _action => string(5) "index" protected _uri => string(11) "newarrivals" protected _external => bool FALSE protected _params => array(0) protected _get => array(3) ( "kohana_uri" => string(12) "/newarrivals" "cat" => string(3) "309" "s" => string(3) "186" ) 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(32) "(<controller>(/<action>(/<id>)))" protected _regex => array(0) protected _defaults => array(2) ( "controller" => string(4) "site" "action" => string(5) "index" ) protected _route_regex => string(95) "#^(?:(?P<controller>[^/.,;?\n]++)(?:/(?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(11) "Newarrivals" protected _action => string(5) "index" protected _uri => string(11) "newarrivals" protected _external => bool FALSE protected _params => array(0) protected _get => array(3) ( "kohana_uri" => string(12) "/newarrivals" "cat" => string(3) "309" "s" => string(3) "186" ) 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 [ 128 ] » Kohana_Request->execute()
123 /** 124 * Execute the main request. A source of the URI can be passed, eg: $_SERVER['PATH_INFO']. 125 * If no source is specified, the URI will be automatically detected. 126 */ 127 echo Request::factory(TRUE, array(), FALSE) 128 ->execute() 129 ->send_headers(TRUE) 130 ->body(); 131 }