APPPATH/classes/controller/index/catalog.php [ 266 ]
261 if(isset($_SERVER['HTTP_X_REQUESTED_WITH'])
262 && strtolower($_SERVER['HTTP_X_REQUESTED_WITH']) === 'xmlhttprequest'){
263 echo json_encode($products);
264 exit;
265 } else {
266 $this->request->redirect($_SERVER['HTTP_REFERER']);
267 }
268
269 }
270
271
-
APPPATH/classes/controller/index/catalog.php [ 266 ] » Kohana_Core::error_handler(arguments)
0
integer 8
1
string(29) "Undefined index: HTTP_REFERER"
2
string(92) "/home/host1360510/comfortking.ru/htdocs/www/application/classes/controller/index/catalog.php"
3
integer 266
4
array(6) ( "products_s" => array(1) ( 878 => integer 1 ) "id" => integer 878 "cat" => string(3) "106" "products" => array(1) ( 878 => array(5) ( "cost" => string(3) "200" "title" => string(73) "Суперстойкий увлажняющий BB крем Super Wearing" "image" => string(20) "6r0fpn7k1zosimql.jpg" "cat" => string(3) "106" "count" => integer 1 ) ) "count" => integer 1 "product" => object Model_Product(31)
{ protected _table_name => string(8) "products" protected _primary_key => string(2) "id" protected _db_group => string(7) "default" protected _has_many => array(3) ( "comments" => array(4) ( "model" => string(7) "comment" "foreign_key" => string(10) "product_id" "through" => NULL "far_key" => string(10) "comment_id" ) "images" => array(4) ( "model" => string(5) "image" "foreign_key" => string(10) "product_id" "through" => NULL "far_key" => string(8) "image_id" ) "categories" => array(4) ( "model" => string(8) "category" "foreign_key" => string(10) "product_id" "through" => string(19) "products_categories" "far_key" => string(11) "category_id" ) ) protected _belongs_to => array(1) ( "main_img" => array(2) ( "model" => string(5) "image" "foreign_key" => string(8) "image_id" ) ) protected _has_one => array(0) protected _load_with => array(0) protected _validation => NULL protected _object => array(8) ( "id" => string(3) "878" "title" => string(90) "Суперстойкий увлажняющий BB крем Super Wearing BB Cream Bioaqua" "description" => string(3623) "<p> ВВ крем - хит азиатского рынка, набирающий популярность во всем мире. Это тонирующее средство, обладающее рядом полезнейших …" "description1" => string(572) "ВВ крем - хит азиатского рынка, набирающий популярность во всем мире. Это тонирующее средство, обладающее рядом полезнейших функ …" "cost" => string(3) "200" "status" => string(1) "1" "image_id" => string(5) "10095" "status2" => string(1) "0" ) protected _changed => array(0) protected _related => array(1) ( "main_img" => object Model_Image(31)
){ protected _belongs_to => array(1) ( "product" => array(2) ( ... ) ) protected _has_one => array(0) protected _has_many => array(0) protected _load_with => array(0) protected _validation => NULL protected _object => array(3) ( "id" => string(5) "10095" "product_id" => string(3) "878" "name" => string(20) "6r0fpn7k1zosimql.jpg" ) protected _changed => array(0) protected _related => array(0) protected _valid => bool TRUE protected _loaded => bool TRUE protected _saved => bool TRUE protected _sorting => NULL protected _foreign_key_suffix => string(3) "_id" protected _object_name => string(5) "image" protected _object_plural => string(6) "images" protected _table_name => string(6) "images" protected _table_columns => array(3) ( "id" => array(13) ( ... ) "product_id" => array(13) ( ... ) "name" => array(12) ( ... ) ) protected _updated_column => NULL protected _created_column => NULL protected _primary_key => string(2) "id" protected _primary_key_value => string(5) "10095" protected _table_names_plural => bool TRUE protected _reload_on_wakeup => bool TRUE protected _db => object Database_MySQL(6)
) protected _valid => bool TRUE protected _loaded => bool TRUE protected _saved => bool TRUE protected _sorting => NULL protected _foreign_key_suffix => string(3) "_id" protected _object_name => string(7) "product" protected _object_plural => string(8) "products" protected _table_columns => array(8) ( "id" => array(13) ( "type" => string(3) "int" "min" => string(11) "-2147483648" "max" => string(10) "2147483647" "column_name" => string(2) "id" "column_default" => NULL "data_type" => string(3) "int" "is_nullable" => bool FALSE "ordinal_position" => integer 1 "display" => string(2) "10" "comment" => string(0) "" "extra" => string(14) "auto_increment" "key" => string(3) "PRI" "privileges" => string(31) "select,insert,update,references" ) "title" => array(12) ( "type" => string(6) "string" "column_name" => string(5) "title" "column_default" => NULL "data_type" => string(7) "varchar" "is_nullable" => bool FALSE "ordinal_position" => integer 2 "character_maximum_length" => string(3) "255" "collation_name" => string(17) "cp1251_general_ci" "comment" => string(0) "" "extra" => string(0) "" "key" => string(0) "" "privileges" => string(31) "select,insert,update,references" ) "description" => array(12) ( "type" => string(6) "string" "character_maximum_length" => string(5) "65535" "column_name" => string(11) "description" "column_default" => NULL "data_type" => string(4) "text" "is_nullable" => bool FALSE "ordinal_position" => integer 3 "collation_name" => string(17) "cp1251_general_ci" "comment" => string(0) "" "extra" => string(0) "" "key" => string(0) "" "privileges" => string(31) "select,insert,update,references" ) "description1" => array(12) ( "type" => string(6) "string" "character_maximum_length" => string(5) "65535" "column_name" => string(12) "description1" "column_default" => NULL "data_type" => string(4) "text" "is_nullable" => bool FALSE "ordinal_position" => integer 4 "collation_name" => string(17) "cp1251_general_ci" "comment" => string(0) "" "extra" => string(0) "" "key" => string(0) "" "privileges" => string(31) "select,insert,update,references" ) "cost" => array(12) ( "type" => string(6) "string" "column_name" => string(4) "cost" "column_default" => NULL "data_type" => string(7) "varchar" "is_nullable" => bool FALSE "ordinal_position" => integer 5 "character_maximum_length" => string(2) "30" "collation_name" => string(17) "cp1251_general_ci" "comment" => string(0) "" "extra" => string(0) "" "key" => string(0) "" "privileges" => string(31) "select,insert,update,references" ) "status" => array(13) ( "type" => string(3) "int" "min" => string(11) "-2147483648" "max" => string(10) "2147483647" "column_name" => string(6) "status" "column_default" => NULL "data_type" => string(3) "int" "is_nullable" => bool FALSE "ordinal_position" => integer 6 "display" => string(1) "1" "comment" => string(0) "" "extra" => string(0) "" "key" => string(0) "" "privileges" => string(31) "select,insert,update,references" ) "image_id" => array(13) ( "type" => string(3) "int" "min" => string(11) "-2147483648" "max" => string(10) "2147483647" "column_name" => string(8) "image_id" "column_default" => NULL "data_type" => string(3) "int" "is_nullable" => bool FALSE "ordinal_position" => integer 7 "display" => string(2) "11" "comment" => string(0) "" "extra" => string(0) "" "key" => string(0) "" "privileges" => string(31) "select,insert,update,references" ) "status2" => array(13) ( "type" => string(3) "int" "min" => string(11) "-2147483648" "max" => string(10) "2147483647" "column_name" => string(7) "status2" "column_default" => NULL "data_type" => string(3) "int" "is_nullable" => bool FALSE "ordinal_position" => integer 8 "display" => string(1) "1" "comment" => string(0) "" "extra" => string(0) "" "key" => string(0) "" "privileges" => string(31) "select,insert,update,references" ) ) protected _updated_column => NULL protected _created_column => NULL protected _primary_key_value => string(3) "878" protected _table_names_plural => bool TRUE protected _reload_on_wakeup => bool TRUE protected _db => object Database_MySQL(6){ protected _connection_id => string(40) "a08869c38f0f554adb82c26529eac84746b5ff35" protected _identifier => string(1) "`" public last_query => string(69) "SELECT `images`.* FROM `images` WHERE `images`.`id` = '10095' LIMIT 1" protected _instance => string(7) "default" protected _connection => resource(mysql link) protected _config => array(6) ( ... ) }
protected _db_group => NULL protected _db_applied => array(0) protected _db_pending => array(0) protected _db_reset => bool TRUE protected _db_builder => NULL protected _with_applied => array(0) protected _cast_data => array(0) }{ protected _connection_id => string(40) "a08869c38f0f554adb82c26529eac84746b5ff35" protected _identifier => string(1) "`" public last_query => string(69) "SELECT `images`.* FROM `images` WHERE `images`.`id` = '10095' LIMIT 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) "localhost" "database" => string(19) "host1360510_kohana4" "persistent" => bool FALSE ) "table_prefix" => string(0) "" "charset" => string(4) "utf8" "caching" => bool FALSE "profiling" => bool TRUE ) }
protected _db_applied => array(0) protected _db_pending => array(0) protected _db_reset => bool TRUE protected _db_builder => NULL protected _with_applied => array(0) protected _cast_data => array(0) }261 if(isset($_SERVER['HTTP_X_REQUESTED_WITH']) 262 && strtolower($_SERVER['HTTP_X_REQUESTED_WITH']) === 'xmlhttprequest'){ 263 echo json_encode($products); 264 exit; 265 } else { 266 $this->request->redirect($_SERVER['HTTP_REFERER']); 267 } 268 269 } 270 271
-
{PHP internal call} » Controller_Index_Catalog->action_add(arguments)
0
string(3) "106"
1
string(0) ""
2
string(3) "878"
-
SYSPATH/classes/kohana/request/client/internal.php [ 132 ] » ReflectionMethod->invokeArgs(arguments)
0
object Controller_Index_Catalog(5)
{ public template => object View(2)
{ protected _file => string(78) "/home/host1360510/comfortking.ru/htdocs/www/application/views/index/v_base.php" protected _data => array(17) ( "site_name" => string(22) "Комфорткинг" "site_description" => string(94) "Китайская косметика | Интернет магазин Комфорткинг" "page_title" => NULL "page_title2" => NULL "title" => NULL "styles" => array(2) ( 0 => string(19) "media/css/style.css" 1 => string(44) "media/css/fancybox/jquery.fancybox-1.3.4.css" ) "scripts" => array(3) ( 0 => string(28) "media/js/jquery-1.6.2.min.js" 1 => string(23) "media/js/view_images.js" 2 => string(48) "media/css/fancybox/jquery.fancybox-1.3.4.pack.js" ) "block_left" => array(1) ( 0 => object Response(5)
protected session => object Session_Cookie(5){ protected _status => integer 200 protected _header => object HTTP_Header(0)
) "block_center" => NULL "block_right" => NULL "block_widgetsearch" => NULL "block_phone" => NULL "block_podmenu" => NULL "block_korza" => NULL "block_kartinka" => NULL "cart" => object Response(5){ }
protected _body => string(9373) "<h2 style=" margin-left: 34px">Каталог продукции</h2><br> <div class="menu_links"> <table style=" background-color: #FCFCFC" …" protected _cookies => array(0) protected _protocol => string(4) "http" }{ protected _status => integer 200 protected _header => object HTTP_Header(0)
"top_menu" => object Response(5){ }
protected _body => string(177) "<div class="cart"> <a href="/cart"><img src="/media/img/cart.png" width="50" border=0><br/> <h3 ><nobr>Ваша корзина …" protected _cookies => array(0) protected _protocol => string(4) "http" }{ protected _status => integer 200 protected _header => object HTTP_Header(0)
) }{ }
protected _body => string(131) "<a href="/page/contacts">Контакты</a><a href="/page/delivery">Доставка</a><a href="/page/basket">Корзина</a>" protected _cookies => array(0) protected _protocol => string(4) "http" }{ protected _name => string(7) "session" protected _lifetime => integer 43200 protected _encrypted => string(7) "default" protected _data => array(1) ( "products" => array(1) ( 878 => integer 1 ) ) protected _destroyed => bool FALSE }
public auto_render => bool TRUE public request => object Request(20){ protected _requested_with => NULL protected _method => string(3) "GET" protected _protocol => string(4) "http" protected _referrer => NULL protected _route => object Route(5)
public response => object Response(5){ protected _callback => NULL protected _uri => string(46) "catalog(/<action>(/<cat>(/page<page>)(/<id>)))" protected _regex => array(0) protected _defaults => array(3) ( "directory" => string(5) "index" "action" => string(5) "index" "controller" => string(7) "catalog" ) protected _route_regex => string(128) "#^catalog(?:/(?P<action>[^/.,;?\n]++)(?:/(?P<cat>[^/.,;?\n]++)(?:/page(?P<page>[^/.,;?\n]++))?(?:/(?P<id>[^/.,;?\n]++))?)?)?$#uD" }
protected _routes => NULL 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(4) "http" }{ }
protected _body => NULL protected _directory => string(5) "index" protected _controller => string(7) "catalog" protected _action => string(3) "add" protected _uri => string(19) "catalog/add/106/878" protected _external => bool FALSE protected _params => array(3) ( "cat" => string(3) "106" "page" => string(0) "" "id" => string(3) "878" ) protected _get => array(0) protected _post => array(0) protected _cookies => array(0) protected _client => object Request_Client_Internal(5){ protected _previous_environment => NULL protected _cache => NULL protected _allow_private_cache => bool FALSE protected _request_time => NULL protected _response_time => integer 1711727737 }
public _injected_routes => array(0) }{ protected _status => integer 200 protected _header => object HTTP_Header(0)
}{ }
protected _body => string(0) "" protected _cookies => array(0) protected _protocol => string(4) "http" }1
array(3) ( "cat" => string(3) "106" "page" => string(0) "" "id" => string(3) "878" )
127 * Execute the main action with the parameters 128 * 129 * @deprecated $params passing is deprecated since version 3.1 130 * will be removed in 3.2. 131 */ 132 $method->invokeArgs($controller, $params); 133 134 // Execute the "after action" method 135 $class->getMethod('after')->invoke($controller); 136 137 // Stop response time
-
SYSPATH/classes/kohana/request.php [ 1138 ] » Kohana_Request_Client_Internal->execute(arguments)
0
object Request(20)
{ protected _requested_with => NULL protected _method => string(3) "GET" protected _protocol => string(4) "http" protected _referrer => NULL protected _route => object Route(5)
{ protected _callback => NULL protected _uri => string(46) "catalog(/<action>(/<cat>(/page<page>)(/<id>)))" protected _regex => array(0) protected _defaults => array(3) ( "directory" => string(5) "index" "action" => string(5) "index" "controller" => string(7) "catalog" ) protected _route_regex => string(128) "#^catalog(?:/(?P<action>[^/.,;?\n]++)(?:/(?P<cat>[^/.,;?\n]++)(?:/page(?P<page>[^/.,;?\n]++))?(?:/(?P<id>[^/.,;?\n]++))?)?)?$#uD" }
protected _routes => NULL 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(4) "http" }{ }
protected _body => NULL protected _directory => string(5) "index" protected _controller => string(7) "catalog" protected _action => string(3) "add" protected _uri => string(19) "catalog/add/106/878" protected _external => bool FALSE protected _params => array(3) ( "cat" => string(3) "106" "page" => string(0) "" "id" => string(3) "878" ) protected _get => array(0) protected _post => array(0) protected _cookies => array(0) protected _client => object Request_Client_Internal(5){ protected _previous_environment => NULL protected _cache => NULL protected _allow_private_cache => bool FALSE protected _request_time => NULL protected _response_time => integer 1711727737 }
public _injected_routes => array(0) }1133 throw new Kohana_Request_Exception('Unable to execute :uri without a Kohana_Request_Client', array( 1134 ':uri' => $this->_uri, 1135 )); 1136 } 1137 1138 return $this->_client->execute($this); 1139 } 1140 1141 /** 1142 * Returns whether this request is the initial request Kohana received. 1143 * Can be used to test for sub requests.
-
DOCROOT/index.php [ 109 ] » Kohana_Request->execute()
104 /** 105 * Execute the main request. A source of the URI can be passed, eg: $_SERVER['PATH_INFO']. 106 * If no source is specified, the URI will be automatically detected. 107 */ 108 echo Request::factory() 109 ->execute() 110 ->send_headers() 111 ->body();