MODPATH/database/classes/kohana/database/mysql.php [ 194 ]
189 {
190 // This benchmark is worthless
191 Profiler::delete($benchmark);
192 }
193
194 throw new Database_Exception(':error [ :query ]',
195 array(':error' => mysql_error($this->_connection), ':query' => $sql),
196 mysql_errno($this->_connection));
197 }
198
199 if (isset($benchmark))
-
MODPATH/database/classes/kohana/database/query.php [ 245 ] » Kohana_Database_MySQL->query(arguments)
0
integer 1
1
string(1579) "SELECT `good`.`id` AS `id`, `good`.`name` AS `name`, `good`.`group_name` AS `group_name`, `good`.`translit` AS `translit`, `good …"
2
string(10) "Model_Good"
3
array(0)
240 return new Database_Result_Cached($result, $sql, $as_object, $object_params); 241 } 242 } 243 244 // Execute the query 245 $result = $db->query($this->_type, $sql, $as_object, $object_params); 246 247 if (isset($cache_key) AND $this->_lifetime > 0) 248 { 249 // Cache the result array 250 Kohana::cache($cache_key, $result->as_array(), $this->_lifetime);
-
MODPATH/orm/classes/kohana/orm.php [ 993 ] » Kohana_Database_Query->execute(arguments)
0
object Database_MySQL(6)
{ protected _connection_id => string(40) "07a909eadbe389fa1398d9f756c9acbb90180243" protected _identifier => string(1) "`" public last_query => string(122) "SELECT `id` FROM `z_good` WHERE `brand_id` = 51566 AND `section_id` = 29798 AND `show` = 1 AND `active` = 1 AND `qty` != 0" 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) "bitrix_mladenec_bak" "persistent" => bool FALSE ) "table_prefix" => string(0) "" "charset" => string(4) "utf8" "caching" => bool FALSE "profiling" => bool TRUE ) }
988 } 989 990 if ($multiple === TRUE) 991 { 992 // Return database iterator casting to this object type 993 $result = $this->_db_builder->as_object(get_class($this))->execute($this->_db); 994 995 $this->reset(); 996 997 return $result; 998 }
-
MODPATH/orm/classes/kohana/orm.php [ 934 ] » Kohana_ORM->_load_result(arguments)
0
bool TRUE
929 } 930 } 931 932 $this->_build(Database::SELECT); 933 934 return $this->_load_result(TRUE); 935 } 936 937 /** 938 * Returns an array of columns to include in the select query. This method 939 * can be overridden to change the default select behavior.
-
APPPATH/classes/controller/section.php [ 507 ] » Kohana_ORM->find_all()
502 if ($this->tmpl['front']) { // на главной получаем 4 самых популярных товара 503 $best = ORM::factory('good') 504 ->where('id', 'IN', $g) 505 ->order_by('popularity', 'DESC') 506 ->limit(10) 507 ->find_all() 508 ->as_array('id'); 509 510 $this->layout->after_body = View::factory('smarty:section/pampers/slider', [ 511 'best' => $best, 512 'images' => Model_Good::many_images([255], array_keys($best)),
-
{PHP internal call} » Controller_Section->action_pampers()
-
SYSPATH/classes/kohana/request/client/internal.php [ 116 ] » ReflectionMethod->invoke(arguments)
0
object Controller_Section(11)
{ protected shop => array(7) ( "host" => string(20) "www.mladenec-shop.ru" "word" => string(21) "для детей 0-3" "allowed_secure" => bool TRUE "prefer_secure" => bool TRUE "redirect_to_secure" => bool TRUE "force_uploaded_to_mladenec" => bool FALSE "code" => string(8) "mladenec" ) protected last_modified_ts => integer 0 protected last_modified_supress => bool FALSE protected layout => object Smarty_View(4)
{ protected _file => string(55) "/home/admin/sites/mladenec/application/views/layout.tpl" protected _data => array(0) protected _clone_time => float 0.0012400150299072 protected _smarty => object Smarty(73)
protected user => NULL protected config => object Conf(34){ public auto_literal => bool TRUE public error_unassigned => bool FALSE public use_include_path => bool FALSE private template_dir => array(1) ( 0 => string(45) "/home/admin/sites/mladenec/application/views/" ) public joined_template_dir => string(45) "/home/admin/sites/mladenec/application/views/" public joined_config_dir => string(53) "/home/admin/sites/mladenec/application/smarty_config/" public default_template_handler_func => NULL public default_config_handler_func => NULL public default_plugin_handler_func => NULL private compile_dir => string(61) "/home/admin/sites/mladenec/application/cache/smarty_compiled/" private plugins_dir => array(3) ( 0 => string(54) "/home/admin/sites/mladenec/application/smarty_plugins/" 1 => string(57) "/home/admin/sites/mladenec/modules/smarty/smarty_plugins/" 2 => string(69) "/home/admin/sites/mladenec/modules/smarty/vendor/smarty/libs/plugins/" ) private cache_dir => string(58) "/home/admin/sites/mladenec/application/cache/smarty_cache/" private config_dir => array(1) ( 0 => string(53) "/home/admin/sites/mladenec/application/smarty_config/" ) public force_compile => bool FALSE public compile_check => bool FALSE public use_sub_dirs => bool FALSE public allow_ambiguous_resources => bool FALSE public caching => bool FALSE public merge_compiled_includes => bool FALSE public cache_lifetime => integer 3600 public force_cache => bool FALSE public cache_id => NULL public compile_id => NULL public left_delimiter => string(1) "{" public right_delimiter => string(1) "}" public security_class => string(15) "Smarty_Security" public security_policy => NULL public php_handling => integer 1 public allow_php_templates => bool FALSE public direct_access_security => bool TRUE public debugging => bool FALSE public debugging_ctrl => string(4) "NONE" public smarty_debug_id => string(12) "SMARTY_DEBUG" public debug_tpl => string(75) "file:/home/admin/sites/mladenec/modules/smarty/vendor/smarty/libs/debug.tpl" public error_reporting => NULL public get_used_tags => bool FALSE public config_overwrite => bool TRUE public config_booleanize => bool TRUE public config_read_hidden => bool FALSE public compile_locking => bool TRUE public cache_locking => bool FALSE public locking_timeout => integer 10 public template_functions => array(0) public default_resource_type => string(4) "file" public caching_type => string(4) "file" public properties => array(0) public default_config_type => string(4) "file" public template_objects => array(0) public cache_modified_check => bool FALSE public registered_plugins => array(0) public plugin_search_order => array(4) ( 0 => string(8) "function" 1 => string(5) "block" 2 => string(8) "compiler" 3 => string(5) "class" ) public registered_objects => array(0) public registered_classes => array(0) public registered_filters => array(0) public registered_resources => array(0) public _resource_handlers => array(0) public registered_cache_resources => array(0) public _cacheresource_handlers => array(0) public autoload_filters => array(0) public default_modifiers => array(0) public escape_html => bool FALSE public start_time => float 1711639956.8093 public _file_perms => integer 420 public _dir_perms => integer 505 public _tag_stack => array(0) public smarty => object Smarty(73) { *RECURSION* } public _current_file => NULL public _parserdebug => bool FALSE public merged_templates_func => array(0) public template_class => string(24) "Smarty_Internal_Template" public tpl_vars => array(3) ( "body" => object Smarty_Variable(3)
}{ public value => bool FALSE public nocache => bool FALSE public scope => integer 0 }
"cart" => object Smarty_Variable(3){ public value => bool FALSE public nocache => bool FALSE public scope => integer 0 }
"title" => object Smarty_Variable(3){ public value => string(29) "Магазин Памперс" public nocache => bool FALSE public scope => integer 0 }
) public parent => NULL public config_vars => array(0) }{ public id => string(1) "1" public phone => string(159) "<li><a class="calltracking2" href="tel:+78005556994">8 (800) 555-699-4</a></li> <li><a class="calltracking" href="tel:+749566299 …" public menu => string(154) "<p><a href="/about/">О магазине</a>⋅ <a href="/delivery/">Доставка и оплата</a>⋅ <a href="/contacts/">Контакты</a></p>" public logo_id => string(7) "2909591" public seo_index => string(4723) "<p>Подарите малышам время, а себе — возможность радоваться качественной покупкой!</p><p>Чтобы малыш был всегда веселым и жизнера …" public accept_cards => string(8) "sberbank" public mail_return => string(113) "a.sergeev@mladenec.ru,a.karcev@mladenec.ru,a.araslanova@mladenec.ru,o.gordeeva@mladenec.ru,o.borodina@mladenec.ru" public mail_comment => string(182) "return@mladenec-shop.ru,a.sergeev@mladenec.ru,j.kaverina@mladenec.ru,o.borodina@mladenec.ru,a.karcev@mladenec.ru,a.araslanova@ml …" public mail_order => string(43) "zakaz@mladenec.ru,1creport@mladenec-shop.ru" public mail_review => string(135) "a.sergeev@mladenec.ru,a.karcev@mladenec.ru,a.araslanova@mladenec.ru,o.gordeeva@mladenec.ru,k.folomov@mladenec.ru,o.borodina@mlad …" public mail_partner => string(48) "o.gordeeva@mladenec.ru,a.araslanova@mladenec.ru " public mail_good => string(65) "o.gordeeva@mladenec.ru,executive@mladenec.ru,a.karcev@mladenec.ru" public mail_action => string(95) "e.galimyllina@mladenec.ru,a.karcev@mladenec.ru,o.gordeeva@mladenec.ru,s.nedzvetskiy@mladenec.ru" public mail_present => string(44) "i.arinina@mladenec.ru,o.gordeeva@mladenec.ru" public mail_error => string(91) "k.puchkov@mladenec.ru,nick.crassus@gmail.com,reclama01@media-bridge.ru, support@mladenec.ru" public mail_payment => string(89) "a.karcev@mladenec.ru,a.sergeev@mladenec.ru,a.bezhenskiy@mladenec.ru,k.puchkov@mladenec.ru" public sms_present => string(25) "+79197740870,+79853937536" public sms_method => string(1) "2" public mail_fransh => string(0) "" public mail_feedback => string(67) "request@mladenec.ru,a.sergeev@mladenec.ru,a.araslanova@mladenec.ru " public mail_contest => string(46) "a.araslanova@mladenec.ru,i.arinina@mladenec.ru" public mail_sms_warning => string(106) "a.karcev@mladenec.ru,i.arinina@mladenec.ru,a.araslanova@mladenec.ru,m.zukk@yandex.ru,k.puchkov@mladenec.ru" public mail_empty_section => string(0) "" public mail_emptytag => string(42) "i.arinina@mladenec.ru,a.karcev@mladenec.ru" public actions_header => string(14) "WOW-акции" public actions_subheader => string(37) "<p>Скидки и подарки</p>" public instant_search => string(7) "in site" public rr_enabled => string(1) "1" public emails => string(89) "a.karcev@mladenec.ru,a.araslanova@mladenec.ru,i.arinina@mladenec.ru,a.sergeev@mladenec.ru" public link_left => string(43) "https://www.mladenec-shop.ru/actions/193981" public link_right => string(43) "https://www.mladenec-shop.ru/actions/193971" public image_id => string(7) "3707989" public logo => array(7) ( "ID" => string(7) "2909591" "TIMESTAMP_X" => string(19) "2013-11-18 12:16:35" "MODULE_ID" => NULL "SUBDIR" => string(7) "9/8/8/1" "FILE_NAME" => string(12) "WpRn5ykm.PNG" "original" => string(1) "0" "item_id" => string(1) "0" ) public image => array(7) ( "ID" => string(7) "3707989" "TIMESTAMP_X" => string(19) "2017-02-14 09:25:36" "MODULE_ID" => NULL "SUBDIR" => string(7) "2/6/a/1" "FILE_NAME" => string(12) "WZ5o9Gze.jpg" "original" => string(1) "0" "item_id" => string(1) "0" ) }
protected tmpl => array(3) ( "front" => bool TRUE "age" => array(3) ( "0-5" => array(8) ( 0 => integer 184435 1 => integer 54684 2 => integer 54037 3 => integer 54038 4 => integer 148036 5 => integer 148037 6 => integer 102705 7 => integer 193248 ) "6-12" => array(13) ( 0 => integer 54060 1 => integer 54062 2 => integer 150178 3 => integer 54061 4 => integer 54063 5 => integer 150179 6 => integer 148030 7 => integer 148032 8 => integer 148119 9 => integer 148120 10 => integer 193758 11 => integer 193760 12 => integer 193759 ) "1-2" => array(21) ( 0 => integer 54064 1 => integer 150177 2 => integer 54065 3 => integer 191785 4 => integer 191784 5 => integer 148038 6 => integer 148121 7 => integer 148039 8 => integer 148041 9 => integer 148040 10 => integer 148042 11 => integer 148033 12 => integer 148034 13 => integer 191783 14 => integer 191782 15 => integer 55367 16 => integer 55370 17 => integer 55368 18 => integer 55371 19 => integer 55369 20 => integer 55372 ) ) "size" => array(8) ( 0 => array(1) ( "Размер 0" => array(1) ( 0 => integer 188554 ) ) 1 => array(1) ( "Размер 1 (2-5 кг)" => array(4) ( 0 => integer 54036 1 => integer 54051 2 => integer 74550 3 => integer 193258 ) ) 2 => array(1) ( "Размер 2 (3-6 кг)" => array(9) ( 0 => integer 54037 1 => integer 54038 2 => integer 54052 3 => integer 54053 4 => integer 148036 5 => integer 148037 6 => integer 184435 7 => integer 193248 8 => integer 193254 ) ) 3 => array(1) ( "Размер 3 (4-11 кг)" => array(19) ( 0 => integer 54039 1 => integer 54040 2 => integer 54054 3 => integer 54055 4 => integer 54060 5 => integer 54061 6 => integer 147994 7 => integer 148030 8 => integer 148031 9 => integer 148119 10 => integer 150178 11 => integer 157491 12 => integer 184434 13 => integer 193255 14 => integer 214139 15 => integer 214142 16 => integer 216123 17 => integer 216122 18 => integer 216121 ) ) 4 => array(1) ( "Размер 4 (7-14 кг)" => array(24) ( 0 => integer 54041 1 => integer 54042 2 => integer 54043 3 => integer 54056 4 => integer 54057 5 => integer 54062 6 => integer 54063 7 => integer 55367 8 => integer 55370 9 => integer 148032 10 => integer 148038 11 => integer 148120 12 => integer 148121 13 => integer 148826 14 => integer 150179 15 => integer 181635 16 => integer 191783 17 => integer 191785 18 => integer 193247 19 => integer 193256 20 => integer 214143 21 => integer 214140 22 => integer 216125 23 => integer 216126 ) ) "4 " => array(1) ( "Размер 4+ (9-16 кг)" => array(6) ( 0 => integer 54044 1 => integer 54045 2 => integer 54046 3 => integer 148033 4 => integer 181636 5 => integer 193253 ) ) 5 => array(1) ( "Размер 5 (11-25 кг)" => array(24) ( 0 => integer 54047 1 => integer 54048 2 => integer 54049 3 => integer 54058 4 => integer 54059 5 => integer 54064 6 => integer 54065 7 => integer 55368 8 => integer 55371 9 => integer 109458 10 => integer 148034 11 => integer 148039 12 => integer 148041 13 => integer 150177 14 => integer 181637 15 => integer 184433 16 => integer 191782 17 => integer 191784 18 => integer 193257 19 => integer 214141 20 => integer 214144 21 => integer 216129 22 => integer 216127 23 => integer 216128 ) ) 6 => array(1) ( "Размер 6 (15+ кг)" => array(9) ( 0 => integer 54050 1 => integer 55369 2 => integer 55372 3 => integer 148035 4 => integer 148040 5 => integer 148042 6 => integer 216130 7 => integer 216131 8 => integer 216132 ) ) ) ) protected force_profiling => bool FALSE protected view_use_extends => bool FALSE public request => object Request(20){ protected _requested_with => NULL protected _method => string(3) "GET" protected _protocol => string(8) "HTTP/1.1" protected _secure => bool TRUE protected _referrer => string(48) "https://www.mladenec-shop.ru/pampers?f2199=18696" protected _route => object Route(5)
public response => object Response(5){ protected _callback => NULL protected _uri => string(16) "pampers(/<slug>)" protected _regex => array(1) ( "slug" => string(11) "[a-z0-9-+]+" ) protected _defaults => array(2) ( "controller" => string(7) "section" "action" => string(7) "pampers" ) protected _route_regex => string(40) "#^pampers(?:/(?P<slug>[a-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(0) "" protected _cookies => array(0) protected _protocol => string(8) "HTTP/1.1" }{ }
protected _body => NULL protected _directory => string(0) "" protected _controller => string(7) "section" protected _action => string(7) "pampers" protected _uri => string(7) "pampers" protected _external => bool FALSE protected _params => array(0) 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 TRUE protected _referrer => string(48) "https://www.mladenec-shop.ru/pampers?f2199=18696" protected _route => object Route(5)
{ protected _callback => NULL protected _uri => string(16) "pampers(/<slug>)" protected _regex => array(1) ( "slug" => string(11) "[a-z0-9-+]+" ) protected _defaults => array(2) ( "controller" => string(7) "section" "action" => string(7) "pampers" ) protected _route_regex => string(40) "#^pampers(?:/(?P<slug>[a-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(0) "" protected _cookies => array(0) protected _protocol => string(8) "HTTP/1.1" }{ }
protected _body => NULL protected _directory => string(0) "" protected _controller => string(7) "section" protected _action => string(7) "pampers" protected _uri => string(7) "pampers" protected _external => bool FALSE protected _params => array(0) 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 [ 1154 ] » 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 TRUE protected _referrer => string(48) "https://www.mladenec-shop.ru/pampers?f2199=18696" protected _route => object Route(5)
{ protected _callback => NULL protected _uri => string(16) "pampers(/<slug>)" protected _regex => array(1) ( "slug" => string(11) "[a-z0-9-+]+" ) protected _defaults => array(2) ( "controller" => string(7) "section" "action" => string(7) "pampers" ) protected _route_regex => string(40) "#^pampers(?:/(?P<slug>[a-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(0) "" protected _cookies => array(0) protected _protocol => string(8) "HTTP/1.1" }{ }
protected _body => NULL protected _directory => string(0) "" protected _controller => string(7) "section" protected _action => string(7) "pampers" protected _uri => string(7) "pampers" protected _external => bool FALSE protected _params => array(0) 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 }
}1149 throw new Request_Exception('Unable to execute :uri without a Kohana_Request_Client', array( 1150 ':uri' => $this->_uri, 1151 )); 1152 } 1153 1154 return $this->_client->execute($this); 1155 } 1156 1157 /** 1158 * Returns whether this request is the initial request Kohana received. 1159 * Can be used to test for sub requests.
-
DOCROOT/index.php [ 10 ] » Kohana_Request->execute()
5 /** 6 * Execute the main request. A source of the URI can be passed, eg: $_SERVER['PATH_INFO']. 7 * If no source is specified, the URI will be automatically detected. 8 */ 9 echo Request::factory() 10 ->execute() 11 ->send_headers() 12 ->body();