APPPATH/classes/controller/catalog.php [ 196 ]
191
192 //Финт ушами, передаем в модель вывода блока категорий ID родителя для конечной страницы каталога
193 $tech= new Model_Tech();
194 $tablename = 'catalog';
195 $breadcrums = $tech->get_breadcrums($tablename, $category_id);
196 $cat_add = $breadcrums['0']['parent'];
197 $this->template->breadcrums = $breadcrums;
198
199 $category_block = $catalog->getCatagory($category_id);
200
201 if(!isset($category_block['0']))
-
APPPATH/classes/controller/catalog.php [ 196 ] » Kohana_Core::error_handler(arguments)
0
integer 8
1
string(18) "Undefined index: 0"
2
string(69) "/home/t/tr27ru/public_html/application/classes/controller/catalog.php"
3
integer 196
4
array(10) ( "category_id" => string(4) "2997" "filter" => string(8) "cost ASC" "page" => integer 1 "items_on_page" => integer 24 "offset" => integer 0 "catalog" => object Model_Catalog(1)
{ protected _db => object Database_MySQL(6)
"data" => array(2) ( "count" => array(1) ( 0 => array(1) ( "COUNT(tovar.id)" => string(2) "45" ) ) "data" => array(24) ( 0 => array(12) ( "manufacture_title" => string(10) "Китай" "cat_image" => string(19) "klapan_dvustvor.jpg" "id" => string(5) "14417" "title" => string(42) "Клапан двухстворчатый" "description" => string(8) "Ду 250" "catagory" => string(4) "2999" "what" => string(9) "р./шт." "cost" => string(1) "0" "manufacture" => string(4) "2579" "image" => string(0) "" "date" => string(12) "201910210151" "position" => string(1) "0" ) 1 => array(12) ( "manufacture_title" => string(10) "Китай" "cat_image" => string(19) "klapan_dvustvor.jpg" "id" => string(5) "14418" "title" => string(42) "Клапан двухстворчатый" "description" => string(8) "Ду 300" "catagory" => string(4) "2999" "what" => string(9) "р./шт." "cost" => string(1) "0" "manufacture" => string(4) "2579" "image" => string(0) "" "date" => string(12) "201910210151" "position" => string(1) "0" ) 2 => array(12) ( "manufacture_title" => string(12) "Италия" "cat_image" => string(20) "klapan_balan_CIM.png" "id" => string(5) "14435" "title" => string(68) "Балансировочный клапан Cim Ду ручн 727" "description" => string(8) "Ду 40" "catagory" => string(4) "3002" "what" => string(8) "р./шт" "cost" => string(1) "0" "manufacture" => string(4) "2588" "image" => string(0) "" "date" => string(12) "201910210151" "position" => string(1) "0" ) 3 => array(12) ( "manufacture_title" => string(10) "Китай" "cat_image" => string(18) "klapan_obr_lat.jpg" "id" => string(5) "14419" "title" => string(46) "Клапан обратный латунный" "description" => string(7) "Ду 15" "catagory" => string(4) "3000" "what" => string(8) "р./шт" "cost" => string(3) "144" "manufacture" => string(4) "2579" "image" => string(0) "" "date" => string(12) "201910210151" "position" => string(1) "0" ) 4 => array(12) ( "manufacture_title" => string(10) "Китай" "cat_image" => string(18) "klapan_obr_lat.jpg" "id" => string(5) "14420" "title" => string(46) "Клапан обратный латунный" "description" => string(7) "Ду 20" "catagory" => string(4) "3000" "what" => string(8) "р./шт" "cost" => string(3) "168" "manufacture" => string(4) "2579" "image" => string(0) "" "date" => string(12) "201910210151" "position" => string(1) "0" ) 5 => array(12) ( "manufacture_title" => string(10) "Китай" "cat_image" => string(18) "klapan_obr_lat.jpg" "id" => string(5) "14421" "title" => string(46) "Клапан обратный латунный" "description" => string(7) "Ду 25" "catagory" => string(4) "3000" "what" => string(8) "р./шт" "cost" => string(3) "380" "manufacture" => string(4) "2579" "image" => string(0) "" "date" => string(12) "201910210151" "position" => string(1) "0" ) 6 => array(12) ( "manufacture_title" => string(10) "Китай" "cat_image" => string(18) "klapan_obr_lat.jpg" "id" => string(5) "14422" "title" => string(46) "Клапан обратный латунный" "description" => string(7) "Ду 32" "catagory" => string(4) "3000" "what" => string(8) "р./шт" "cost" => string(3) "410" "manufacture" => string(4) "2579" "image" => string(0) "" "date" => string(12) "201910210151" "position" => string(1) "0" ) 7 => array(12) ( "manufacture_title" => string(10) "Китай" "cat_image" => string(19) "klapan_dvustvor.jpg" "id" => string(5) "14409" "title" => string(42) "Клапан двухстворчатый" "description" => string(7) "Ду 40" "catagory" => string(4) "2999" "what" => string(9) "р./шт." "cost" => string(3) "544" "manufacture" => string(4) "2579" "image" => string(0) "" "date" => string(12) "201910210151" "position" => string(1) "0" ) 8 => array(12) ( "manufacture_title" => string(10) "Китай" "cat_image" => string(19) "klapan_dvustvor.jpg" "id" => string(5) "14410" "title" => string(42) "Клапан двухстворчатый" "description" => string(7) "Ду 50" "catagory" => string(4) "2999" "what" => string(9) "р./шт." "cost" => string(3) "572" "manufacture" => string(4) "2579" "image" => string(0) "" "date" => string(12) "201910210151" "position" => string(1) "0" ) 9 => array(12) ( "manufacture_title" => string(10) "Китай" "cat_image" => string(18) "klapan_obr_lat.jpg" "id" => string(5) "14423" "title" => string(46) "Клапан обратный латунный" "description" => string(7) "Ду 40" "catagory" => string(4) "3000" "what" => string(8) "р./шт" "cost" => string(3) "706" "manufacture" => string(4) "2579" "image" => string(0) "" "date" => string(12) "201910210151" "position" => string(1) "0" ) 10 => array(12) ( "manufacture_title" => string(10) "Китай" "cat_image" => string(19) "klapan_dvustvor.jpg" "id" => string(5) "14411" "title" => string(42) "Клапан двухстворчатый" "description" => string(7) "Ду 65" "catagory" => string(4) "2999" "what" => string(9) "р./шт." "cost" => string(3) "757" "manufacture" => string(4) "2579" "image" => string(0) "" "date" => string(12) "201910210151" "position" => string(1) "0" ) 11 => array(12) ( "manufacture_title" => string(10) "Китай" "cat_image" => string(18) "klapan_obr_lat.jpg" "id" => string(5) "14424" "title" => string(46) "Клапан обратный латунный" "description" => string(7) "Ду 50" "catagory" => string(4) "3000" "what" => string(8) "р./шт" "cost" => string(3) "821" "manufacture" => string(4) "2579" "image" => string(0) "" "date" => string(12) "201910210151" "position" => string(1) "0" ) 12 => array(12) ( "manufacture_title" => string(10) "Китай" "cat_image" => string(19) "klapan_dvustvor.jpg" "id" => string(5) "14412" "title" => string(42) "Клапан двухстворчатый" "description" => string(7) "Ду 80" "catagory" => string(4) "2999" "what" => string(9) "р./шт." "cost" => string(3) "909" "manufacture" => string(4) "2579" "image" => string(0) "" "date" => string(12) "201910210151" "position" => string(1) "0" ) 13 => array(12) ( "manufacture_title" => string(10) "Китай" "cat_image" => string(19) "klapan_dvustvor.jpg" "id" => string(5) "14413" "title" => string(42) "Клапан двухстворчатый" "description" => string(8) "Ду 100" "catagory" => string(4) "2999" "what" => string(9) "р./шт." "cost" => string(4) "1208" "manufacture" => string(4) "2579" "image" => string(0) "" "date" => string(12) "201910210151" "position" => string(1) "0" ) 14 => array(12) ( "manufacture_title" => string(10) "Китай" "cat_image" => string(19) "klapan_dvustvor.jpg" "id" => string(5) "14414" "title" => string(42) "Клапан двухстворчатый" "description" => string(8) "Ду 125" "catagory" => string(4) "2999" "what" => string(9) "р./шт." "cost" => string(4) "1345" "manufacture" => string(4) "2579" "image" => string(0) "" "date" => string(12) "201910210151" "position" => string(1) "0" ) 15 => array(12) ( "manufacture_title" => string(12) "Россия" "cat_image" => string(11) "19h21br.png" "id" => string(5) "14404" "title" => string(23) "Клапан 19ч21бр" "description" => string(7) "Ду 50" "catagory" => string(4) "2998" "what" => string(9) "р./шт." "cost" => string(4) "1356" "manufacture" => string(4) "2271" "image" => string(0) "" "date" => string(12) "201910210151" "position" => string(1) "0" ) 16 => array(12) ( "manufacture_title" => string(10) "Китай" "cat_image" => string(19) "klapan_dvustvor.jpg" "id" => string(5) "14415" "title" => string(42) "Клапан двухстворчатый" "description" => string(8) "Ду 150" "catagory" => string(4) "2999" "what" => string(9) "р./шт." "cost" => string(4) "1668" "manufacture" => string(4) "2579" "image" => string(0) "" "date" => string(12) "201910210151" "position" => string(1) "0" ) 17 => array(12) ( "manufacture_title" => string(12) "Италия" "cat_image" => string(20) "klapan_balan_CIM.png" "id" => string(5) "14431" "title" => string(62) "Балансировочный клапан Cim ручн 727" "description" => string(8) "Ду 15" "catagory" => string(4) "3002" "what" => string(8) "р./шт" "cost" => string(4) "1890" "manufacture" => string(4) "2588" "image" => string(0) "" "date" => string(12) "201910210151" "position" => string(1) "0" ) 18 => array(12) ( "manufacture_title" => string(10) "Китай" "cat_image" => string(16) "kapan_balans.jpg" "id" => string(5) "14443" "title" => string(80) "Балансировочный клапан FERAT с изм. ниппелями " "description" => string(8) "Ду 15" "catagory" => string(4) "3003" "what" => string(8) "р./шт" "cost" => string(4) "1894" "manufacture" => string(4) "2579" "image" => string(0) "" "date" => string(12) "201910210151" "position" => string(1) "0" ) 19 => array(12) ( "manufacture_title" => string(10) "Китай" "cat_image" => string(16) "kapan_balans.jpg" "id" => string(5) "14444" "title" => string(80) "Балансировочный клапан FERAT с изм. ниппелями " "description" => string(8) "Ду 20" "catagory" => string(4) "3003" "what" => string(8) "р./шт" "cost" => string(4) "2021" "manufacture" => string(4) "2579" "image" => string(0) "" "date" => string(12) "201910210151" "position" => string(1) "0" ) 20 => array(12) ( "manufacture_title" => string(12) "Италия" "cat_image" => string(20) "klapan_balan_CIM.png" "id" => string(5) "14432" "title" => string(62) "Балансировочный клапан Cim ручн 727" "description" => string(8) "Ду 20" "catagory" => string(4) "3002" "what" => string(8) "р./шт" "cost" => string(4) "2081" "manufacture" => string(4) "2588" "image" => string(0) "" "date" => string(12) "201910210151" "position" => string(1) "0" ) 21 => array(12) ( "manufacture_title" => string(12) "Италия" "cat_image" => string(20) "klapan_balan_CIM.png" "id" => string(5) "14437" "title" => string(154) "Балансировочный клапан Cim Ду ручн 787 OT/2R с заглушками вместо измерительных ниппелей" "description" => string(8) "Ду 15" "catagory" => string(4) "3002" "what" => string(8) "р./шт" "cost" => string(4) "2273" "manufacture" => string(4) "2588" "image" => string(0) "" "date" => string(12) "201910210151" "position" => string(1) "0" ) 22 => array(12) ( "manufacture_title" => string(10) "Китай" "cat_image" => string(17) "klapan_obr_16.jpg" "id" => string(5) "14427" "title" => string(23) "16кч6п(нж) Ру 18" "description" => string(7) "Ду 50" "catagory" => string(4) "3001" "what" => string(8) "р./шт" "cost" => string(4) "2300" "manufacture" => string(4) "2579" "image" => string(0) "" "date" => string(12) "201910210151" "position" => string(1) "0" ) 23 => array(12) ( "manufacture_title" => string(12) "Россия" "cat_image" => string(11) "19h21br.png" "id" => string(5) "14405" "title" => string(23) "Клапан 19ч21бр" "description" => string(7) "Ду 80" "catagory" => string(4) "2998" "what" => string(9) "р./шт." "cost" => string(4) "2345" "manufacture" => string(4) "2271" "image" => string(0) "" "date" => string(12) "201910210151" "position" => string(1) "0" ) ) ) "tech" => object Model_Tech(1){ protected _connection_id => string(40) "51f795cad013750e901b1f824ea9a7ac7fda64ac" protected _identifier => string(1) "`" public last_query => string(204) "SELECT cat1.title, cat1.type, cat1.parent, catpatent.title as title_first, catpatent.id FROM catagory as cat1 LEFT JOIN catagor …" 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(6) "tr27ru" "persistent" => bool FALSE ) "table_prefix" => string(0) "" "charset" => string(4) "utf8" "caching" => bool FALSE "profiling" => bool TRUE ) }
}{ protected _db => object Database_MySQL(6)
"tablename" => string(7) "catalog" "breadcrums" => array(0) ){ protected _connection_id => string(40) "51f795cad013750e901b1f824ea9a7ac7fda64ac" protected _identifier => string(1) "`" public last_query => string(204) "SELECT cat1.title, cat1.type, cat1.parent, catpatent.title as title_first, catpatent.id FROM catagory as cat1 LEFT JOIN catagor …" 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(6) "tr27ru" "persistent" => bool FALSE ) "table_prefix" => string(0) "" "charset" => string(4) "utf8" "caching" => bool FALSE "profiling" => bool TRUE ) }
}191 192 //Финт ушами, передаем в модель вывода блока категорий ID родителя для конечной страницы каталога 193 $tech= new Model_Tech(); 194 $tablename = 'catalog'; 195 $breadcrums = $tech->get_breadcrums($tablename, $category_id); 196 $cat_add = $breadcrums['0']['parent']; 197 $this->template->breadcrums = $breadcrums; 198 199 $category_block = $catalog->getCatagory($category_id); 200 201 if(!isset($category_block['0']))
-
{PHP internal call} » Controller_Catalog->action_tovar()
-
SYSPATH/classes/kohana/request/client/internal.php [ 118 ] » ReflectionMethod->invoke(arguments)
0
object Controller_Catalog(4)
{ public template => object View(2)
{ protected _file => string(62) "/home/t/tr27ru/public_html/application/views/template/html.php" protected _data => array(2) ( "menu" => array(4) ( 0 => array(4) ( "id" => string(1) "2" "name" => string(14) "Каталог" "url" => string(1) "/" "position" => string(1) "4" ) 1 => array(4) ( "id" => string(2) "10" "name" => string(16) "Контакты" "url" => string(13) "/page/contact" "position" => string(1) "3" ) 2 => array(4) ( "id" => string(2) "11" "name" => string(19) "О компании" "url" => string(17) "/page/index/about" "position" => string(1) "2" ) 3 => array(4) ( "id" => string(1) "9" "name" => string(14) "Новости" "url" => string(5) "/news" "position" => string(1) "1" ) ) "seo" => array(2) ( "title" => string(22) "Техноресурс" "description" => string(16) "Описание" ) ) }
public auto_render => bool TRUE public request => object Request(21){ 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 _callback => NULL protected _uri => string(32) "(<controller>(/<action>(/<id>)))" protected _regex => array(0) protected _defaults => array(2) ( "controller" => string(7) "catalog" "action" => string(5) "index" ) protected _route_regex => string(95) "#^(?:(?P<controller>[^/.,;?\n]++)(?:/(?P<action>[^/.,;?\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(8) "HTTP/1.1" }{ }
protected _body => NULL protected _directory => string(0) "" protected _controller => string(7) "catalog" protected _action => string(5) "tovar" protected _uri => string(13) "catalog/tovar" protected _external => bool FALSE protected _params => array(0) protected _get => array(1) ( "category" => string(4) "2997" ) protected _post => array(0) protected _cookies => array(0) protected _client => object Request_Client_Internal(2){ protected _previous_environment => NULL protected _cache => NULL }
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(8) "HTTP/1.1" }113 throw new HTTP_Exception_404('The requested URL :uri was not found on this server.', 114 array(':uri' => $request->uri())); 115 } 116 117 $method = $class->getMethod('action_'.$action); 118 $method->invoke($controller); 119 120 // Execute the "after action" method 121 $class->getMethod('after')->invoke($controller); 122 } 123 catch (Exception $e)
-
SYSPATH/classes/kohana/request/client.php [ 64 ] » Kohana_Request_Client_Internal->execute_request(arguments)
0
object Request(21)
{ 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 _callback => NULL protected _uri => string(32) "(<controller>(/<action>(/<id>)))" protected _regex => array(0) protected _defaults => array(2) ( "controller" => string(7) "catalog" "action" => string(5) "index" ) protected _route_regex => string(95) "#^(?:(?P<controller>[^/.,;?\n]++)(?:/(?P<action>[^/.,;?\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(8) "HTTP/1.1" }{ }
protected _body => NULL protected _directory => string(0) "" protected _controller => string(7) "catalog" protected _action => string(5) "tovar" protected _uri => string(13) "catalog/tovar" protected _external => bool FALSE protected _params => array(0) protected _get => array(1) ( "category" => string(4) "2997" ) protected _post => array(0) protected _cookies => array(0) protected _client => object Request_Client_Internal(2){ protected _previous_environment => NULL protected _cache => NULL }
public _injected_routes => array(0) }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 [ 1138 ] » Kohana_Request_Client->execute(arguments)
0
object Request(21)
{ 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 _callback => NULL protected _uri => string(32) "(<controller>(/<action>(/<id>)))" protected _regex => array(0) protected _defaults => array(2) ( "controller" => string(7) "catalog" "action" => string(5) "index" ) protected _route_regex => string(95) "#^(?:(?P<controller>[^/.,;?\n]++)(?:/(?P<action>[^/.,;?\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(8) "HTTP/1.1" }{ }
protected _body => NULL protected _directory => string(0) "" protected _controller => string(7) "catalog" protected _action => string(5) "tovar" protected _uri => string(13) "catalog/tovar" protected _external => bool FALSE protected _params => array(0) protected _get => array(1) ( "category" => string(4) "2997" ) protected _post => array(0) protected _cookies => array(0) protected _client => object Request_Client_Internal(2){ protected _previous_environment => NULL protected _cache => NULL }
public _injected_routes => array(0) }1133 throw new 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 [ 111 ] » Kohana_Request->execute()
106 * If no source is specified, the URI will be automatically detected. 107 */ 108 109 110 try{ 111 echo Request::factory()->execute()->send_headers()->body(); 112 } 113 catch (Http_Exception_403 $e){ 114 echo Request::factory('error/403')->execute()->send_headers()->body(); 115 } 116 catch (Http_Exception_404 $e){