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 [ 251 ] » Kohana_Database_MySQL->query(arguments)
0
integer 1
1
object Database_Expression(2)
{ protected _parameters => array(0) protected _value => string(268) " SELECT `prices`.`id`, `prices`.`price`, `prices`.`main`, (SELECT `price_types`.`type` FROM `price_types` WHERE `price_t …" }
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/Controller/Products.php [ 340 ] » Kohana_Database_Query->execute()
335 336 $price = DB::query( Database::SELECT, DB::expr( $sql ) ); 337 338 339 return $price 340 ->execute() 341 ->as_array(); 342 343 344 } 345
-
APPPATH/views/Products/products_view_view.php [ 17 ] » Controller_Products::price(arguments)
0
string(0) ""
12 13 extract( $a_products ); 14 } 15 16 17 $a_price = Controller_Products::price( $id ); 18 19 $relations = Controller_Products::productRelationsList( $id ); 20 21 22 //Utils::Pre($relations);
-
SYSPATH/classes/Kohana/View.php [ 61 ] » include(arguments)
0
string(100) "/home/colorcity/domains/colorcity76.ru/public_html/application/views/Products/products_view_view.php"
56 ob_start(); 57 58 try 59 { 60 // Load the view within the current scope 61 include $kohana_view_filename; 62 } 63 catch (Exception $e) 64 { 65 // Delete the output buffer 66 ob_end_clean();
-
SYSPATH/classes/Kohana/View.php [ 348 ] » Kohana_View::capture(arguments)
0
string(100) "/home/colorcity/domains/colorcity76.ru/public_html/application/views/Products/products_view_view.php"
1
array(3) ( "a_products" => bool FALSE "html_optionlist" => object View(2)
{ protected _file => string(91) "/home/colorcity/domains/colorcity76.ru/public_html/application/views/Options/optionlist.php" protected _data => array(1) ( "a_optionlist" => array(0) ) }
"images_gallery" => object View(2){ protected _file => string(101) "/home/colorcity/domains/colorcity76.ru/public_html/application/views/ImagesGallery/gallery_list_2.php" protected _data => array(1) ( "a_images" => array(0) ) }
)343 { 344 throw new View_Exception('You must set the file to use within your view before rendering'); 345 } 346 347 // Combine local and global data and capture the output 348 return View::capture($this->_file, $this->_data); 349 } 350 351 }
-
SYSPATH/classes/Kohana/View.php [ 228 ] » Kohana_View->render()
223 */ 224 public function __toString() 225 { 226 try 227 { 228 return $this->render(); 229 } 230 catch (Exception $e) 231 { 232 /** 233 * Display the exception message.
-
APPPATH/views/Product.php [ 31 ] » Kohana_View->__toString()
26 27 // echo $breadcrumbs; 28 29 } 30 31 echo $content ; 32 33 if( isset( $seo_text ) && trim( $seo_text ) !== '' ){ 34 ?> 35 <div class="col-md-11 seo-text"> 36 <?php echo $seo_text; ?>
-
SYSPATH/classes/Kohana/View.php [ 61 ] » include(arguments)
0
string(80) "/home/colorcity/domains/colorcity76.ru/public_html/application/views/Product.php"
56 ob_start(); 57 58 try 59 { 60 // Load the view within the current scope 61 include $kohana_view_filename; 62 } 63 catch (Exception $e) 64 { 65 // Delete the output buffer 66 ob_end_clean();
-
SYSPATH/classes/Kohana/View.php [ 348 ] » Kohana_View::capture(arguments)
0
string(80) "/home/colorcity/domains/colorcity76.ru/public_html/application/views/Product.php"
1
array(11) ( "styles" => array(1) ( 0 => string(15) "layerslider.css" ) "scripts" => array(5) ( 0 => string(27) "layerslider/js/greensock.js" 1 => string(41) "layerslider/js/layerslider.transitions.js" 2 => string(50) "layerslider/js/layerslider.kreaturamedia.jquery.js" 3 => string(9) "common.js" 4 => string(11) "products.js" ) "content" => object View(2)
{ protected _file => string(100) "/home/colorcity/domains/colorcity76.ru/public_html/application/views/Products/products_view_view.php" protected _data => array(3) ( "a_products" => bool FALSE "html_optionlist" => object View(2)
"company_name" => string(43) "Колор City Сеть магазинов" "services_html" => object View(2){ protected _file => string(91) "/home/colorcity/domains/colorcity76.ru/public_html/application/views/Options/optionlist.php" protected _data => array(1) ( "a_optionlist" => array(0) ) }
"images_gallery" => object View(2){ protected _file => string(101) "/home/colorcity/domains/colorcity76.ru/public_html/application/views/ImagesGallery/gallery_list_2.php" protected _data => array(1) ( "a_images" => array(0) ) }
) }{ protected _file => string(104) "/home/colorcity/domains/colorcity76.ru/public_html/application/views/Services/services_list_for_menu.php" protected _data => array(1) ( "a_services" => array(4) ( 0 => array(4) ( "id" => string(1) "1" "name" => string(60) "Нанесение декоративных покрытий" "short_description" => string(439) "<p> Салон-магазин «КолорСити» не только продает декоративные покрытия, но также предлагает воспользоваться  …" "alias" => string(31) "nanesenie_dekorativnyh_pokrytiy" ) 1 => array(4) ( "id" => string(1) "2" "name" => string(18) "Колеровка" "short_description" => string(0) "" "alias" => string(9) "kolerovka" ) 2 => array(4) ( "id" => string(1) "3" "name" => string(49) "Доставка краски на объекты" "short_description" => string(0) "" "alias" => string(26) "dostavka_kraski_na_obyekty" ) 3 => array(4) ( "id" => string(1) "4" "name" => string(25) "Мастер-классы" "short_description" => string(0) "" "alias" => string(13) "master_klassy" ) ) ) }
"breadcrumbs" => string(100) "<div class='h2'><a href='/category/'>Каталог</a> / <a href="/category//products/1"></a></div>" "product_list_for_footer" => object View(2){ protected _file => string(105) "/home/colorcity/domains/colorcity76.ru/public_html/application/views/Products/product_list_for_footer.php" protected _data => array(0) }
"metatag_title" => NULL "meta_description" => NULL "meta_keywords" => NULL "seo_text" => NULL )343 { 344 throw new View_Exception('You must set the file to use within your view before rendering'); 345 } 346 347 // Combine local and global data and capture the output 348 return View::capture($this->_file, $this->_data); 349 } 350 351 }
-
SYSPATH/classes/Kohana/Controller/Template.php [ 44 ] » Kohana_View->render()
39 */ 40 public function after() 41 { 42 if ($this->auto_render === TRUE) 43 { 44 $this->response->body($this->template->render()); 45 } 46 47 parent::after(); 48 } 49
-
SYSPATH/classes/Kohana/Controller.php [ 87 ] » Kohana_Controller_Template->after()
82 83 // Execute the action itself 84 $this->{$action}(); 85 86 // Execute the "after action" method 87 $this->after(); 88 89 // Return the response 90 return $this->response; 91 } 92
-
{PHP internal call} » Kohana_Controller->execute()
-
SYSPATH/classes/Kohana/Request/Client/Internal.php [ 97 ] » ReflectionMethod->invoke(arguments)
0
object Controller_Products(7)
{ public template => object View(2)
{ protected _file => string(80) "/home/colorcity/domains/colorcity76.ru/public_html/application/views/Product.php" protected _data => array(11) ( "styles" => array(1) ( 0 => string(15) "layerslider.css" ) "scripts" => array(5) ( 0 => string(27) "layerslider/js/greensock.js" 1 => string(41) "layerslider/js/layerslider.transitions.js" 2 => string(50) "layerslider/js/layerslider.kreaturamedia.jquery.js" 3 => string(9) "common.js" 4 => string(11) "products.js" ) "content" => object View(2)
protected _form_fields => array(13) ( 0 => string(2) "id" 1 => string(4) "name" 2 => string(13) "specification" 3 => string(19) "short_specification" 4 => string(5) "alias" 5 => string(11) "category_id" 6 => string(13) "assignment_id" 7 => string(6) "public" 8 => string(3) "hit" 9 => string(13) "metatag_title" 10 => string(19) "metatag_description" 11 => string(16) "metatag_keywords" 12 => string(8) "seo_text" ) public data => array(0) public config => object Config_Group(28){ protected _file => string(100) "/home/colorcity/domains/colorcity76.ru/public_html/application/views/Products/products_view_view.php" protected _data => array(3) ( "a_products" => bool FALSE "html_optionlist" => object View(2)
"company_name" => string(43) "Колор City Сеть магазинов" "services_html" => object View(2){ protected _file => string(91) "/home/colorcity/domains/colorcity76.ru/public_html/application/views/Options/optionlist.php" protected _data => array(1) ( "a_optionlist" => array(0) ) }
"images_gallery" => object View(2){ protected _file => string(101) "/home/colorcity/domains/colorcity76.ru/public_html/application/views/ImagesGallery/gallery_list_2.php" protected _data => array(1) ( "a_images" => array(0) ) }
) }{ protected _file => string(104) "/home/colorcity/domains/colorcity76.ru/public_html/application/views/Services/services_list_for_menu.php" protected _data => array(1) ( "a_services" => array(4) ( 0 => array(4) ( "id" => string(1) "1" "name" => string(60) "Нанесение декоративных покрытий" "short_description" => string(439) "<p> Салон-магазин «КолорСити» не только продает декоративные покрытия, но также предлагает воспользоваться  …" "alias" => string(31) "nanesenie_dekorativnyh_pokrytiy" ) 1 => array(4) ( "id" => string(1) "2" "name" => string(18) "Колеровка" "short_description" => string(0) "" "alias" => string(9) "kolerovka" ) 2 => array(4) ( "id" => string(1) "3" "name" => string(49) "Доставка краски на объекты" "short_description" => string(0) "" "alias" => string(26) "dostavka_kraski_na_obyekty" ) 3 => array(4) ( "id" => string(1) "4" "name" => string(25) "Мастер-классы" "short_description" => string(0) "" "alias" => string(13) "master_klassy" ) ) ) }
"breadcrumbs" => string(100) "<div class='h2'><a href='/category/'>Каталог</a> / <a href="/category//products/1"></a></div>" "product_list_for_footer" => object View(2){ protected _file => string(105) "/home/colorcity/domains/colorcity76.ru/public_html/application/views/Products/product_list_for_footer.php" protected _data => array(0) }
"metatag_title" => NULL "meta_description" => NULL "meta_keywords" => NULL "seo_text" => NULL ) }{ public company_name => string(43) "Колор City Сеть магазинов" public title => string(43) "Колор City Сеть магазинов" public description => string(99) "Колор City Мир полон красок! Мы предлагаем лучшие из них!" public keywords => string(98) "Колор City Мир полон красок Мы предлагаем лучшие из них" public page_title => array(1) ( "products" => string(12) "Товары" ) public creaete => string(14) "Создать" public edit => string(26) "Редактировать" public delite => string(14) "Удалить" public images => array(1) ( "prewiev" => array(4) ( "width" => integer 150 "height" => integer 150 "background_color" => string(7) "#f3f3f3" "postfix" => string(6) "_small" ) ) public upload => string(8) "/upload/" public uploadForExamples => string(68) "/home/colorcity/domains/colorcity76.ru/public_html/uploads/examples/" public SmtpMailServer => string(17) "smtp.peterhost.ru" public SmtpMailPort => integer 587 public MailRecipient => string(22) "noreply@colorcity76.ru" public SmtpMailUsername => string(11) "colorcity_8" public SmtpMailPassword => string(11) "TNG1jLDeV1Q" public EmailTo => string(26) "irinacolorcity76@yandex.ru" public CopyEmailTo => string(24) "yaroslavl.city@yahoo.com" public SmtpMailDebug => integer 2 public SmtpMailNeedAuth => bool TRUE public SmtpMailAddReply => string(0) "" public SmtpMailReplyTo => string(0) "" public noLogoPlaceholder => string(26) "noLogoPlaceholder40x40.png" public perPage => integer 100 public productUrlPrefix => string(7) "product" public examplesUrlPrefix => string(6) "about:" public examplesTitleAlias => string(8) "examples" public left_menu => array(10) ( 0 => array(4) ( "name" => string(20) "Назначения" "item-id" => string(10) "assignment" "icon" => string(33) "item-icon fontello-icon-th-list-3" "submenu" => array(2) ( 0 => array(2) ( "link_text" => string(33) "Назначение список" "href" => string(17) "/admin/assignment" ) 1 => array(2) ( "link_text" => string(35) "Создать назначение" "href" => string(24) "/admin/assignment/create" ) ) ) 1 => array(4) ( "name" => string(18) "Категории" "item-id" => string(10) "categories" "icon" => string(33) "item-icon fontello-icon-th-list-3" "submenu" => array(2) ( 0 => array(2) ( "link_text" => string(18) "Категории" "href" => string(17) "/admin/categories" ) 1 => array(2) ( "link_text" => string(33) "Создать категорию" "href" => string(24) "/admin/categories/create" ) ) ) 2 => array(4) ( "name" => string(12) "Товары" "item-id" => string(8) "products" "icon" => string(33) "item-icon fontello-icon-basket-2" "submenu" => array(2) ( 0 => array(2) ( "link_text" => string(12) "Товары" "href" => string(15) "/admin/products" ) 1 => array(2) ( "link_text" => string(25) "Создать товар" "href" => string(22) "/admin/products/create" ) ) ) 3 => array(4) ( "name" => string(12) "Услуги" "item-id" => string(8) "services" "icon" => string(26) "item-icon aweso-icon-star" "submenu" => array(2) ( 0 => array(2) ( "link_text" => string(12) "Услуги" "href" => string(15) "/admin/services" ) 1 => array(2) ( "link_text" => string(27) "Создать услугу" "href" => string(22) "/admin/services/create" ) ) ) 4 => array(4) ( "name" => string(18) "Портфолио" "item-id" => string(8) "examples" "icon" => string(26) "item-icon aweso-icon-star" "submenu" => array(2) ( 0 => array(2) ( "link_text" => string(18) "Портфолио" "href" => string(16) "/admin/examples/" ) 1 => array(2) ( "link_text" => string(33) "Создать Портфолио" "href" => string(22) "/admin/examples/create" ) ) ) 5 => array(4) ( "name" => string(12) "Бренды" "item-id" => string(6) "brands" "icon" => string(24) "item-icon aweso-icon-tag" "submenu" => array(2) ( 0 => array(2) ( "link_text" => string(12) "Бренды" "href" => string(13) "/admin/brands" ) 1 => array(2) ( "link_text" => string(25) "Создать бренд" "href" => string(20) "/admin/brands/create" ) ) ) 6 => array(4) ( "name" => string(12) "Статьи" "item-id" => string(8) "articles" "icon" => string(31) "item-icon fontello-icon-feather" "submenu" => array(3) ( 0 => array(2) ( "link_text" => string(31) "Категории статей" "href" => string(19) "/admin/artcategory/" ) 1 => array(2) ( "link_text" => string(25) "Список статей" "href" => string(15) "/admin/articles" ) 2 => array(2) ( "link_text" => string(27) "Создать статью" "href" => string(22) "/admin/articles/create" ) ) ) 7 => array(4) ( "name" => string(14) "Новости" "item-id" => string(4) "news" "icon" => string(33) "item-icon fontello-icon-th-list-3" "submenu" => array(2) ( 0 => array(2) ( "link_text" => string(29) "Список новостей" "href" => string(16) "/admin/news/list" ) 1 => array(2) ( "link_text" => string(29) "Создать новость" "href" => string(18) "/admin/news/create" ) ) ) 8 => array(4) ( "name" => string(10) "Акции" "item-id" => string(7) "actions" "icon" => string(29) "item-icon fontello-icon-bell" "submenu" => array(1) ( 0 => array(2) ( "link_text" => string(10) "Акции" "href" => string(14) "/admin/actions" ) ) ) 9 => array(4) ( "name" => string(3) "SEO" "item-id" => string(7) "actions" "icon" => string(26) "item-icon aweso-icon-star" "submenu" => array(2) ( 0 => array(2) ( "link_text" => string(3) "SEO" "href" => string(10) "/admin/seo" ) 1 => array(2) ( "link_text" => string(18) "Создать SEO" "href" => string(17) "/admin/seo/create" ) ) ) ) }
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.0" protected _secure => bool TRUE protected _referrer => NULL protected _route => object Route(5)
public response => object Response(5){ protected _filters => array(0) protected _uri => string(14) "product(/<id>)" protected _regex => array(1) ( "id" => string(17) "[a-z0-9_]{1,1024}" ) protected _defaults => array(2) ( "controller" => string(8) "Products" "action" => string(6) "detail" ) protected _route_regex => string(44) "#^product(?:/(?P<id>[a-z0-9_]{1,1024}))?$#uD" }
protected _routes => array(0) protected _header => object HTTP_Header(0){ }
protected _body => NULL protected _directory => string(0) "" protected _controller => string(8) "Products" protected _action => string(6) "detail" protected _uri => string(51) "product/dekorativnaya_kraska_bianca_argento_vulcano" protected _external => bool FALSE protected _params => array(1) ( "id" => string(43) "dekorativnaya_kraska_bianca_argento_vulcano" ) protected _get => array(0) 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)
}{ }
protected _body => string(0) "" protected _cookies => array(0) protected _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)
{ protected _requested_with => NULL protected _method => string(3) "GET" protected _protocol => string(8) "HTTP/1.0" protected _secure => bool TRUE protected _referrer => NULL protected _route => object Route(5)
{ protected _filters => array(0) protected _uri => string(14) "product(/<id>)" protected _regex => array(1) ( "id" => string(17) "[a-z0-9_]{1,1024}" ) protected _defaults => array(2) ( "controller" => string(8) "Products" "action" => string(6) "detail" ) protected _route_regex => string(44) "#^product(?:/(?P<id>[a-z0-9_]{1,1024}))?$#uD" }
protected _routes => array(0) protected _header => object HTTP_Header(0){ }
protected _body => NULL protected _directory => string(0) "" protected _controller => string(8) "Products" protected _action => string(6) "detail" protected _uri => string(51) "product/dekorativnaya_kraska_bianca_argento_vulcano" protected _external => bool FALSE protected _params => array(1) ( "id" => string(43) "dekorativnaya_kraska_bianca_argento_vulcano" ) protected _get => array(0) 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.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 [ 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.0" protected _secure => bool TRUE protected _referrer => NULL protected _route => object Route(5)
{ protected _filters => array(0) protected _uri => string(14) "product(/<id>)" protected _regex => array(1) ( "id" => string(17) "[a-z0-9_]{1,1024}" ) protected _defaults => array(2) ( "controller" => string(8) "Products" "action" => string(6) "detail" ) protected _route_regex => string(44) "#^product(?:/(?P<id>[a-z0-9_]{1,1024}))?$#uD" }
protected _routes => array(0) protected _header => object HTTP_Header(0){ }
protected _body => NULL protected _directory => string(0) "" protected _controller => string(8) "Products" protected _action => string(6) "detail" protected _uri => string(51) "product/dekorativnaya_kraska_bianca_argento_vulcano" protected _external => bool FALSE protected _params => array(1) ( "id" => string(43) "dekorativnaya_kraska_bianca_argento_vulcano" ) protected _get => array(0) 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 [ 124 ] » Kohana_Request->execute()
119 /** 120 * Execute the main request. A source of the URI can be passed, eg: $_SERVER['PATH_INFO']. 121 * If no source is specified, the URI will be automatically detected. 122 */ 123 echo Request::factory( TRUE, array(), FALSE ) 124 ->execute() 125 ->send_headers( TRUE ) 126 ->body(); 127 }