MODPATH/database/classes/Database/MySQLi.php [ 177 ]
172 {
173 // This benchmark is worthless
174 Profiler::delete($benchmark);
175 }
176
177 throw new Database_Exception(':error [ :query ]',
178 array(':error' => mysqli_error($this->_connection), ':query' => $sql),
179 mysqli_errno($this->_connection));
180 }
181
182 if (isset($benchmark))
-
MODPATH/database/classes/Kohana/Database/Query.php [ 251 ] » Database_MySQLi->query(arguments)
0
integer 1
1
string(594) "SELECT p.block_s,p.proc_skidka AS p_p_skidka,p.real_skidka AS p_r_skidka, p.`title`, p.`price2` AS price, p.`id_product`, i.`lin …"
2
bool FALSE
3
array(0)
246 return new Database_Result_Cached($result, $sql, $as_object, $object_params); 247 } 248 } 249 250 // Execute the query 251 $result = $db->query($this->_type, $sql, $as_object, $object_params); 252 253 if (isset($cache_key) AND $this->_lifetime > 0) 254 { 255 // Cache the result array 256 Kohana::cache($cache_key, $result->as_array(), $this->_lifetime);
-
APPPATH/classes/Model/Front/Product.php [ 237 ] » Kohana_Database_Query->execute()
232 $sql = 'SELECT p.block_s,p.proc_skidka AS p_p_skidka,p.real_skidka AS p_r_skidka, p.`title`, p.`price2` AS price, p.`id_product`, i.`link`, i.`main`, p.`active`, IF(p.`proc_skidka`>0,p.`proc_skidka`,ss.`proc_skidka`) AS skidka FROM `product` p 233 LEFT JOIN `image` i ON (i.`id_product` = p.`id_product`) 234 LEFT JOIN `shablon_skidka` ss ON (ss.`id_category` = p.`main_category`) 235 LEFT JOIN `brand` b ON (b.`id_brand` = p.`id_brand`) 236 WHERE p.`active` = 1 AND p.`price2` > 0 AND p.`id_product`='.$id; 237 $product = DB::query(Database::SELECT, $sql)->execute(); 238 $price=Tools::get_price(round($product->get('price')),$product->get('p_r_skidka'),$product->get('p_p_skidka'),$product->get('skidka')); 239 $img = new CImage(); 240 $img->sizes = array('width' => 86, 'height' => 86); 241 $img->directory = '/images/p'; 242 for($i=0;$i<strlen($product['id_product']);$i++)
-
APPPATH/classes/Controller/Front/Liders.php [ 20 ] » Model_Front_Product::get_product(arguments)
0
integer 331
15 array( 16 'link'=>'/video-intercom/tantos/', 17 'name'=>'Tantos', 18 'products'=>array( 19 array( 20 'product'=>ORM::factory('Front_Product')->get_product(331), 21 'update'=>array( 22 array( 23 'text'=>'фото запись', 24 'product'=>ORM::factory('Front_Product')->get_product(637) 25 ),
-
SYSPATH/classes/Kohana/Controller.php [ 84 ] » Controller_Front_Liders->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_Front_Liders(7)
{ public template => object View(2)
{ public * _file => string(62) "/home/c/cq16236/public_html/application/views/front/v_main.php" public * _data => array(44) ( "current_page" => string(6) "liders" "global_patch_js" => string(9) "media/js/" "patch_images" => string(6) "images" "patch_library" => string(14) "media/library/" "patch_jquery_js" => string(21) "media/library/jquery/" "patch_jquery_css" => string(25) "media/library/jquery/css/" "patch_css" => string(10) "media/css/" "patch_js" => string(9) "media/js/" "patch_img" => string(10) "media/img/" "vadm" => bool FALSE "shop_name_market" => string(12) "vdomofony.ru" "shop_company_market" => string(12) "vdomofony.ru" "shop_url_market" => string(20) "https://vdomofony.ru" "styles" => array(1) ( 0 => string(20) "media/css/liders.css" ) "styles_footer" => array(1) ( 0 => string(42) "media/library/jquery/css/jquery-ui.min.css" ) "scripts_footer" => array(6) ( 0 => array(2) ( "url" => string(40) "media/library/jquery/jquery-3.5.0.min.js" "defer" => integer 0 ) 1 => array(2) ( "url" => string(37) "media/library/jquery/jquery-ui.min.js" "defer" => integer 0 ) 2 => array(2) ( "url" => string(46) "media/library/jquery/jquery.maskedinput.min.js" "defer" => integer 1 ) 3 => array(2) ( "url" => string(18) "media/js/script.js" "defer" => integer 1 ) 4 => array(2) ( "url" => string(17) "media/js/tools.js" "defer" => integer 1 ) 5 => array(2) ( "url" => string(20) "media/js/validate.js" "defer" => integer 1 ) ) "config" => object Config_Group(17)
public status => array(5) ( 1 => string(17) "В наличии" 2 => string(17) "Под заказ" 3 => string(24) "Нет в наличии" 4 => string(38) "Снято с производства" 5 => string(35) "Ожидается поставка" ) public base_dir => NULL public * session => object Session_Database(11){ public phone => string(18) "+7 (495) 177-81-29" public email => string(18) "zakaz@vdomofony.ru" public seo_prefix => string(5) ".html" public count_products => string(2) "24" public ext => string(4) ".jpg" public doman => string(12) "vdomofony.ru" public protokol => string(8) "https://" public dostavka => integer 350 public dostavka_za_mkad => integer 40 public dostavka_free => integer 4000 public montazg_monitor => integer 2500 public montazg_panel => integer 1500 public montazg_camera => integer 1000 public montazg_podezd => integer 1500 public montazg_osmotr => integer 500 public colors => array(17) ( 2487 => array(2) ( "cod" => string(7) "#0101DF" "title" => string(10) "Синий" ) 2488 => array(2) ( "cod" => string(7) "#E6E8FA" "title" => string(12) "Металл" ) 2489 => array(2) ( "cod" => string(7) "#000000" "title" => string(12) "Черный" ) 2490 => array(2) ( "cod" => string(7) "#FFFFFF" "title" => string(10) "Белый" ) 2491 => array(2) ( "cod" => string(7) "#E6E6E6" "title" => string(10) "Серый" ) 2492 => array(2) ( "cod" => string(7) "#C0C0C0" "title" => string(14) "Серебро" ) 2494 => array(2) ( "cod" => string(7) "#8E402A" "title" => string(12) "Медный" ) 2497 => array(2) ( "cod" => string(7) "#CC9900" "title" => string(12) "Золото" ) 2498 => array(2) ( "cod" => string(7) "#8E402A" "title" => string(20) "Коричневый" ) 2500 => array(2) ( "cod" => string(7) "#C0C0C0" "title" => string(14) "Бежевый" ) 2507 => array(2) ( "cod" => string(7) "#9400D3" "title" => string(26) "Перламутровый" ) 2511 => array(2) ( "cod" => string(7) "#E6E6E6" "title" => string(12) "Графит" ) 2517 => array(2) ( "cod" => string(7) "#E6E6E6" "title" => string(14) "Зеркало" ) 2519 => array(2) ( "cod" => string(7) "#A67D3D" "title" => string(18) "Бронзовый" ) 2524 => array(2) ( "cod" => string(7) "#C0C0C0" "title" => string(10) "Антик" ) 2526 => array(2) ( "cod" => string(7) "#FF0000" "title" => string(14) "Красный" ) 2615 => array(2) ( "cod" => string(7) "#fcfcee" "title" => string(14) "Шампань" ) ) public bestZapros => array(14) ( "Видеодомофон для квартиры" => string(30) "/video-intercom/dlya-kvartiry/" "для дома" => string(36) "/video-intercom/dlya-chastnogo-doma/" "готовый комплект видеодомофона" => string(25) "/video-intercom/komplekt/" "подключение видеодомофона" => string(13) "/montazh.html" "видеодомофон commax" => string(23) "/video-intercom/commax/" "панель видеодомофона" => string(17) "/vyzyvnye-paneli/" "видеодомофон ctv" => string(20) "/video-intercom/ctv/" "видеодомофон tantos" => string(23) "/video-intercom/tantos/" "ip видеодомофон" => string(19) "/video-intercom/ip/" "видеодомофон falcon" => string(23) "/video-intercom/falcon/" "электромеханический замок cisa" => string(39) "/skud/elektromekhanicheskie-zamki/cisa/" "замок на калитку" => string(34) "/skud/elektromekhanicheskie-zamki/" "блок сопряжения домофона" => string(25) "/skud/blok-sopryazheniya/" "камера для видеодомофона" => string(33) "/videonablyudenie/cvetnye-kamery/" ) }
"ext" => string(4) ".jpg" "breadcrumb" => NULL "block_top" => NULL "block_footer" => NULL "blocks" => NULL "blocks_left" => NULL "block_slider" => NULL "block_contetnts" => NULL "block_top_footer" => NULL "sidebars" => NULL "hide_left_block" => bool FALSE "meta_follow" => string(8) "nofollow" "meta_index" => string(7) "noindex" "og_image" => string(0) "" "meta_title" => string(25) "Лидеры продаж" "meta_desc" => string(176) "Продажа систем видеонаблюдения, домофонные системы и СКУД ✓ Интернет-магазин Vdomofony ☎ +7 (495) 177-81-29" "block_bottom_site" => NULL "email" => string(18) "zakaz@vdomofony.ru" "phone" => string(18) "+7 (495) 177-81-29" "base_dir" => string(27) "/home/c/cq16236/public_html" "favorites_total" => integer 0 "compare_total" => integer 0 "tree" => string(48844) "<ul id="catalog" class="mb-3"><li><div class="d-flex justify-content-between"><a class="flex-grow-1 flex-shrink-1 d-flex justify …" "h1" => NULL "blockTags" => NULL "canonical" => string(12) "/liders.html" "meta_keywords" => string(450) "видеодомофоны для квартиры, мониторы для домофона, видеонаблюдение, видеокамеры наблюдения, системы видеонаблюдения, системы без …" ) }{ public * _db => object Database_MySQLi(6)
public auto_render => bool TRUE public request => object Request(19){ public * _connection_id => string(40) "1f6f2f640e6e8ef5359f4ff1d129c13c60843c2c" public * _identifier => string(1) "`" public last_query => string(32) "SHOW FULL COLUMNS FROM `product`" public * _instance => string(7) "default" public * _connection => object mysqli(18)
public * _table => string(8) "sessions" public * _columns => array(3) ( "session_id" => string(10) "session_id" "last_active" => string(11) "last_active" "contents" => string(8) "contents" ) public * _gc => integer 500 public * _session_id => string(23) "65f8f4cb5f0ff6-44378029" public * _update_id => NULL public * _name => string(11) "cookie_name" public * _lifetime => integer 43200 public * _encrypted => bool FALSE public * _data => array(0) public * _destroyed => bool FALSE }{ public affected_rows => NULL public client_info => NULL public client_version => NULL public connect_errno => NULL public connect_error => NULL public errno => NULL public error => NULL public error_list => NULL public field_count => NULL public host_info => NULL public info => NULL public insert_id => NULL public server_info => NULL public server_version => NULL public sqlstate => NULL public protocol_version => NULL public thread_id => NULL public warning_count => NULL }
public * _config => array(5) ( "type" => string(6) "MySQLi" "connection" => array(5) ( "hostname" => string(9) "localhost" "database" => string(10) "cq16236_vd" "port" => NULL "socket" => NULL "persistent" => bool FALSE ) "table_prefix" => string(0) "" "charset" => string(4) "utf8" "caching" => bool TRUE ) }{ public * _requested_with => NULL public * _method => string(3) "GET" public * _protocol => string(8) "HTTP/1.0" public * _secure => bool FALSE public * _referrer => NULL public * _route => object Route(5)
public response => object Response(5){ public * _filters => array(1) ( 0 => object Closure(1)
public * _routes => array(0) public * _header => object HTTP_Header(0){ public 0 => object Closure(1) { *RECURSION* } }
) public * _uri => string(6) "<path>" public * _regex => array(1) ( "path" => string(9) "(.*)[^\/]" ) public * _defaults => array(3) ( "directory" => string(5) "front" "controller" => string(5) "index" "action" => string(5) "index" ) public * _route_regex => string(25) "#^(?P<path>(.*)[^\/])$#uD" }{ }
public * _body => NULL public * _directory => string(5) "Front" public * _controller => string(6) "Liders" public * _action => string(5) "index" public * _uri => string(11) "liders.html" public * _external => bool FALSE public * _params => array(1) ( "path" => string(11) "liders.html" ) public * _get => array(1) ( "/liders_html" => string(0) "" ) public * _post => array(0) public * _cookies => array(0) public * _client => object Request_Client_Internal(9){ public * _previous_environment => NULL public * _cache => NULL public * _follow => bool FALSE public * _follow_headers => array(1) ( 0 => string(13) "authorization" ) public * _strict_redirect => bool TRUE public * _header_callbacks => array(1) ( "Location" => string(34) "Request_Client::on_header_location" ) public * _max_callback_depth => integer 5 public * _callback_depth => integer 1 public * _callback_params => array(0) }
}{ public * _status => integer 200 public * _header => object HTTP_Header(0)
}{ }
public * _body => string(0) "" public * _cookies => array(0) public * _protocol => string(8) "HTTP/1.0" }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)
{ public * _requested_with => NULL public * _method => string(3) "GET" public * _protocol => string(8) "HTTP/1.0" public * _secure => bool FALSE public * _referrer => NULL public * _route => object Route(5)
{ public * _filters => array(1) ( 0 => object Closure(1)
public * _routes => array(0) public * _header => object HTTP_Header(0){ public 0 => object Closure(1) { *RECURSION* } }
) public * _uri => string(6) "<path>" public * _regex => array(1) ( "path" => string(9) "(.*)[^\/]" ) public * _defaults => array(3) ( "directory" => string(5) "front" "controller" => string(5) "index" "action" => string(5) "index" ) public * _route_regex => string(25) "#^(?P<path>(.*)[^\/])$#uD" }{ }
public * _body => NULL public * _directory => string(5) "Front" public * _controller => string(6) "Liders" public * _action => string(5) "index" public * _uri => string(11) "liders.html" public * _external => bool FALSE public * _params => array(1) ( "path" => string(11) "liders.html" ) public * _get => array(1) ( "/liders_html" => string(0) "" ) public * _post => array(0) public * _cookies => array(0) public * _client => object Request_Client_Internal(9){ public * _previous_environment => NULL public * _cache => NULL public * _follow => bool FALSE public * _follow_headers => array(1) ( 0 => string(13) "authorization" ) public * _strict_redirect => bool TRUE public * _header_callbacks => array(1) ( "Location" => string(34) "Request_Client::on_header_location" ) public * _max_callback_depth => integer 5 public * _callback_depth => integer 1 public * _callback_params => array(0) }
}1
object Response(5)
{ public * _status => integer 200 public * _header => object HTTP_Header(0)
{ }
public * _body => string(0) "" public * _cookies => array(0) public * _protocol => string(8) "HTTP/1.0" }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 [ 997 ] » Kohana_Request_Client->execute(arguments)
0
object Request(19)
{ public * _requested_with => NULL public * _method => string(3) "GET" public * _protocol => string(8) "HTTP/1.0" public * _secure => bool FALSE public * _referrer => NULL public * _route => object Route(5)
{ public * _filters => array(1) ( 0 => object Closure(1)
public * _routes => array(0) public * _header => object HTTP_Header(0){ public 0 => object Closure(1) { *RECURSION* } }
) public * _uri => string(6) "<path>" public * _regex => array(1) ( "path" => string(9) "(.*)[^\/]" ) public * _defaults => array(3) ( "directory" => string(5) "front" "controller" => string(5) "index" "action" => string(5) "index" ) public * _route_regex => string(25) "#^(?P<path>(.*)[^\/])$#uD" }{ }
public * _body => NULL public * _directory => string(5) "Front" public * _controller => string(6) "Liders" public * _action => string(5) "index" public * _uri => string(11) "liders.html" public * _external => bool FALSE public * _params => array(1) ( "path" => string(11) "liders.html" ) public * _get => array(1) ( "/liders_html" => string(0) "" ) public * _post => array(0) public * _cookies => array(0) public * _client => object Request_Client_Internal(9){ public * _previous_environment => NULL public * _cache => NULL public * _follow => bool FALSE public * _follow_headers => array(1) ( 0 => string(13) "authorization" ) public * _strict_redirect => bool TRUE public * _header_callbacks => array(1) ( "Location" => string(34) "Request_Client::on_header_location" ) public * _max_callback_depth => integer 5 public * _callback_depth => integer 1 public * _callback_params => array(0) }
}992 throw new Request_Exception('Unable to execute :uri without a Kohana_Request_Client', array( 993 ':uri' => $this->_uri, 994 )); 995 } 996 997 return $this->_client->execute($this); 998 } 999 1000 /** 1001 * Returns whether this request is the initial request Kohana received. 1002 * Can be used to test for sub requests.
-
DOCROOT/index.php [ 125 ] » Kohana_Request->execute()
120 /** 121 * Execute the main request. A source of the URI can be passed, eg: $_SERVER['PATH_INFO']. 122 * If no source is specified, the URI will be automatically detected. 123 */ 124 echo Request::factory(TRUE, array(), FALSE) 125 ->execute() 126 ->send_headers(TRUE) 127 ->body(); 128 }