APPPATH/classes/Model/Catalogue.php [ 37 ]
32 $item = $this->findById($category_id);
33
34 $file_path = $this->config['file_paths']['prod_categories'];
35
36 $props = Model_Background_Images::calcClearWidthAndHeight($item['header_image'], $item['header_image_mobile'], $file_path);
37 $item = array_merge($item, $props);
38
39 return $item;
40 }
41
42 /**
-
{PHP internal call} » Kohana_Core::error_handler(arguments)
0
integer 2
1
string(42) "array_merge(): Argument #1 is not an array"
2
string(77) "/home/tsroman-1/goryanka.ru/docs/application/main/classes/Model/Catalogue.php"
3
integer 37
4
array(4) ( "category_id" => NULL "item" => NULL "file_path" => string(22) "/data/prod_categories/" "props" => array(4) ( "clear_w" => integer 0 "clear_h" => integer 0 "clear_w_mobile" => integer 0 "clear_h_mobile" => integer 0 ) )
-
APPPATH/classes/Model/Catalogue.php [ 37 ] » array_merge(arguments)
arr1
NULL
arrays
array(4) ( "clear_w" => integer 0 "clear_h" => integer 0 "clear_w_mobile" => integer 0 "clear_h_mobile" => integer 0 )
32 $item = $this->findById($category_id); 33 34 $file_path = $this->config['file_paths']['prod_categories']; 35 36 $props = Model_Background_Images::calcClearWidthAndHeight($item['header_image'], $item['header_image_mobile'], $file_path); 37 $item = array_merge($item, $props); 38 39 return $item; 40 } 41 42 /**
-
APPPATH/classes/Controller/Production.php [ 96 ] » Model_Catalogue->get_prod_category_info_by_id(arguments)
0
NULL
91 $id = $this->request->param('id'); 92 93 $product = $this->catalogue_model->get_product_info_by_id($id); 94 $this->out('product', $product); 95 96 $prod_category = $this->catalogue_model->get_prod_category_info_by_id($product['prod_category_id']); 97 $this->out('prod_category', $prod_category); 98 99 //$this->template->set_filename('smarty:production_detail_'.$prod_category['nameurl']); 100 101 //$prod_category = $this->catalogue_model->get_prod_category_info_by_id($product_line['prod_category_id']);
-
SYSPATH/classes/Kohana/Controller.php [ 84 ] » Controller_Production->action_detail()
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_Production(15)
{ public template => object Smarty_View(4)
{ protected _file => string(77) "/home/tsroman-1/goryanka.ru/docs/application/main/views/production_detail.tpl" protected _data => array(0) protected _clone_time => float 0.0035369396209717 protected _smarty => object Smarty(76)
protected page => array(53) ( "id" => string(1) "3" "nameurl" => string(10) "production" "bg_img" => string(15) "bg_karmadon.jpg" "priority" => string(1) "8" "visible" => string(1) "1" "parent_id" => string(1) "0" "b_parent_page" => string(1) "0" "b_unique_template" => string(1) "1" "b_unique_cms_template" => string(1) "1" "b_no_nest" => string(1) "0" "b_sortable" => string(1) "1" "b_can_has_childrens" => string(1) "0" "b_not_delete" => string(1) "1" "url" => string(10) "production" "cms_url" => string(9) "catalogue" "custom_template" => string(0) "" "inherit_custom_templates" => string(1) "0" "site_part" => string(5) "pages" "author_id" => string(1) "0" "postdate" => string(19) "0000-00-00 00:00:00" "change_user_id" => string(1) "1" "changedate" => string(19) "2017-11-29 02:06:24" "page_template" => string(4) "page" "entity_type" => string(5) "pages" "entity_id" => string(1) "0" "clear_offset_top" => string(1) "0" "clear_offset_left" => string(1) "0" "page_block_background_color" => string(6) "FFFFFF" "header_image" => string(0) "" "clear_offset_top_mobile" => string(1) "0" "clear_offset_left_mobile" => string(1) "0" "header_image_mobile" => string(0) "" "content_mobile" => NULL "canvas_position" => string(8) "top-left" "canvas_position_mobile" => string(8) "top-left" "f_key" => string(1) "3" "lang_id" => string(1) "1" "name" => string(18) "Продукция" "header" => string(18) "Продукция" "short_description" => string(0) "" "content" => string(0) "" "title" => string(18) "Продукция" "keywords" => string(0) "" "description" => string(0) "" "right_col_text" => string(0) "" "header_font_size" => string(1) "0" "subheader_font_size" => string(1) "0" "subheader" => string(0) "" "promo_1" => string(1) "5" "promo_2" => string(1) "8" "promo_3" => string(1) "7" "promo_4" => string(1) "6" "corrector_approved" => string(1) "0" ) private catalogue_model => object Model_Catalogue(8){ public auto_literal => bool TRUE public error_unassigned => bool FALSE public use_include_path => bool FALSE public _templateDirNormalized => bool FALSE public _joined_template_dir => NULL public _configDirNormalized => bool FALSE public _joined_config_dir => NULL public default_template_handler_func => NULL public default_config_handler_func => NULL public default_plugin_handler_func => NULL public _compileDirNormalized => bool TRUE public _pluginsDirNormalized => bool FALSE public _cacheDirNormalized => bool TRUE public force_compile => bool FALSE public use_sub_dirs => bool FALSE public allow_ambiguous_resources => bool FALSE public merge_compiled_includes => bool FALSE public extends_recursion => bool TRUE public force_cache => bool FALSE public left_delimiter => string(1) "{" public right_delimiter => string(1) "}" public literals => array(0) public security_class => string(15) "Smarty_Security" public security_policy => NULL public php_handling => integer 1 public allow_php_templates => bool FALSE public debugging => bool FALSE public debugging_ctrl => string(4) "NONE" public smarty_debug_id => string(12) "SMARTY_DEBUG" public debug_tpl => NULL public error_reporting => NULL 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 default_resource_type => string(4) "file" public caching_type => string(4) "file" public default_config_type => string(4) "file" public cache_modified_check => bool FALSE public registered_plugins => array(0) public registered_objects => array(0) public registered_classes => array(0) public registered_filters => array(0) public registered_resources => array(0) public registered_cache_resources => array(0) public autoload_filters => array(0) public default_modifiers => array(0) public escape_html => bool FALSE public start_time => float 1711728044.5153 public _current_file => NULL public _parserdebug => bool FALSE public _objType => integer 1 public _debug => NULL protected template_dir => array(5) ( 0 => string(55) "/home/tsroman-1/goryanka.ru/docs/application/main/views" 1 => string(55) "/home/tsroman-1/goryanka.ru/docs/modules/database/views" 2 => string(52) "/home/tsroman-1/goryanka.ru/docs/modules/image/views" 3 => string(52) "/home/tsroman-1/goryanka.ru/docs/modules/email/views" 4 => string(53) "/home/tsroman-1/goryanka.ru/docs/modules/smarty/views" ) protected _processedTemplateDir => array(0) protected config_dir => array(1) ( 0 => string(63) "/home/tsroman-1/goryanka.ru/docs/application/main/smarty_config" ) protected _processedConfigDir => array(0) protected compile_dir => string(72) "/home/tsroman-1/goryanka.ru/docs/application/main/cache/smarty_compiled/" protected plugins_dir => array(3) ( 0 => string(64) "/home/tsroman-1/goryanka.ru/docs/application/main/smarty_plugins" 1 => string(62) "/home/tsroman-1/goryanka.ru/docs/modules/smarty/smarty_plugins" 2 => string(74) "/home/tsroman-1/goryanka.ru/docs/modules/smarty/vendor/smarty/libs/plugins" ) protected cache_dir => string(69) "/home/tsroman-1/goryanka.ru/docs/application/main/cache/smarty_cache/" protected obsoleteProperties => array(8) ( 0 => string(16) "resource_caching" 1 => string(25) "template_resource_caching" 2 => string(22) "direct_access_security" 3 => string(10) "_dir_perms" 4 => string(11) "_file_perms" 5 => string(19) "plugin_search_order" 6 => string(35) "inheritance_merge_compiled_includes" 7 => string(19) "resource_cache_mode" ) protected accessMap => array(5) ( "template_dir" => string(11) "TemplateDir" "config_dir" => string(9) "ConfigDir" "plugins_dir" => string(10) "PluginsDir" "compile_dir" => string(10) "CompileDir" "cache_dir" => string(8) "CacheDir" ) public cache_id => NULL public compile_id => NULL public caching => integer 0 public compile_check => bool TRUE public cache_lifetime => integer 3600 public tplFunctions => array(0) public _cache => array(0) public template_class => string(24) "Smarty_Internal_Template" public tpl_vars => array(0) public parent => NULL public config_vars => array(0) public ext => object Smarty_Internal_Extension_Handler(4)
}{ public objType => integer 1 private _property_info => array(8) ( "AutoloadFilters" => integer 0 "DefaultModifiers" => integer 0 "ConfigVars" => integer 0 "DebugTemplate" => integer 0 "RegisteredObject" => integer 0 "StreamVariable" => integer 0 "TemplateVars" => integer 0 "Literals" => string(8) "Literals" ) private resolvedProperties => array(0) public assignGlobal => object Smarty_Internal_Method_AssignGlobal(1)
}{ public objMap => integer 7 }
}{ protected products_table => string(8) "products" protected product_lines_table => string(13) "product_lines" protected db => object Database_MySQLi(6)
private _templateData => array(12) ( "language" => array(10) ( "id" => string(1) "1" "name" => string(14) "Русский" "code" => string(2) "ru" "code_name" => string(3) "Rus" "default" => string(1) "1" "priority" => string(1) "1" "author_id" => string(1) "3" "postdate" => string(19) "2012-05-07 14:21:21" "change_user_id" => string(1) "3" "changedate" => string(19) "2014-09-25 22:47:28" ) "languages" => array(1) ( 0 => array(10) ( "id" => string(1) "1" "name" => string(14) "Русский" "code" => string(2) "ru" "code_name" => string(3) "Rus" "default" => string(1) "1" "priority" => string(1) "1" "author_id" => string(1) "3" "postdate" => string(19) "2012-05-07 14:21:21" "change_user_id" => string(1) "3" "changedate" => string(19) "2014-09-25 22:47:28" ) ) "config" => object Config_Group(8){ protected _connection_id => string(40) "5f8b8d95d973c15fa2e8f7d00da8b2ffdbccb70a" protected _identifier => string(1) "`" public last_query => string(192) " SELECT t.* FROM gor_prod_categories t …" protected _instance => string(7) "default" protected _connection => object mysqli(19)
protected table => string(15) "prod_categories" protected prefix => string(4) "gor_" protected config => object Config_Group(8){ 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 stat => NULL public sqlstate => NULL public protocol_version => NULL public thread_id => NULL public warning_count => NULL }
protected _config => array(5) ( "type" => string(6) "MySQLi" "connection" => array(3) ( "hostname" => string(9) "localhost" "database" => string(13) "tsroman-1_gor" "persistent" => bool FALSE ) "table_prefix" => string(4) "gor_" "charset" => string(4) "utf8" "caching" => bool FALSE ) }{ public base_url => string(19) "http://goryanka.ru/" public start_url => string(1) "/" public http_host => string(11) "goryanka.ru" public output_charset => string(5) "utf-8" public file_paths => array(8) ( "pages" => string(12) "/data/pages/" "settings" => string(15) "/data/settings/" "attached_pics" => string(20) "/data/attached_pics/" "page_blocks" => string(18) "/data/page_blocks/" "articles" => string(15) "/data/articles/" "products" => string(15) "/data/products/" "prod_categories" => string(22) "/data/prod_categories/" "awards" => string(13) "/data/awards/" ) public news_date_format => string(8) "%d.%m.%Y" public cache_dir => string(11) "data/cache/" public products_upload => string(14) "data/products/" }
protected errors => array(0) protected multilangTables => array(1) ( 0 => string(5) "pages" ) }{ public base_url => string(19) "http://goryanka.ru/" public start_url => string(1) "/" public http_host => string(11) "goryanka.ru" public output_charset => string(5) "utf-8" public file_paths => array(8) ( "pages" => string(12) "/data/pages/" "settings" => string(15) "/data/settings/" "attached_pics" => string(20) "/data/attached_pics/" "page_blocks" => string(18) "/data/page_blocks/" "articles" => string(15) "/data/articles/" "products" => string(15) "/data/products/" "prod_categories" => string(22) "/data/prod_categories/" "awards" => string(13) "/data/awards/" ) public news_date_format => string(8) "%d.%m.%Y" public cache_dir => string(11) "data/cache/" public products_upload => string(14) "data/products/" }
"current_uri" => string(18) "duction/detail/22/" "navigation_top" => array(1) ( 0 => array(9) ( "_id" => string(1) "3" "id" => string(1) "3" "parent_id" => string(1) "0" "nameurl" => string(10) "production" "name" => string(18) "Продукция" "b_unique_template" => string(1) "1" "url" => string(11) "/production" "_sub" => array(0) "href" => string(11) "/production" ) ) "settings" => array(13) ( "copyright" => string(0) "" "social_links_inst" => string(34) "https://www.instagram.com/nmkmilk/" "feedback_email_to" => string(25) "edwardgorbachev@gmail.com" "feedback_email_sender" => string(17) "noreply@aryana.ru" "b_use_video_on_home_page" => string(1) "1" "video_on_home_page_filename" => string(16) "video_720_v2.mp4" "contact_email" => string(0) "" "contact_phone" => string(0) "" "social_links_yt" => string(56) "https://www.youtube.com/channel/UCQ1IbTYrcgbqfmXAcqb_9Cg" "social_links_vk" => string(0) "" "contact_page_link" => string(44) "http://www.nmkmilk.ru/pages/detail/contacts/" "footer_text_copyright" => string(64) "© 2018 Нальчикский Молочный Комбинат" "video_on_home_page_filename_mobile" => string(20) "video_720_mobile.mp4" ) "is_mobile" => bool FALSE "is_tablet" => bool FALSE "parent_page" => bool FALSE "branch_root_page" => array(55) ( "id" => string(1) "3" "nameurl" => string(10) "production" "bg_img" => string(15) "bg_karmadon.jpg" "priority" => string(1) "8" "visible" => string(1) "1" "parent_id" => string(1) "0" "b_parent_page" => string(1) "0" "b_unique_template" => string(1) "1" "b_unique_cms_template" => string(1) "1" "b_no_nest" => string(1) "0" "b_sortable" => string(1) "1" "b_can_has_childrens" => string(1) "0" "b_not_delete" => string(1) "1" "url" => string(10) "production" "cms_url" => string(9) "catalogue" "custom_template" => string(0) "" "inherit_custom_templates" => string(1) "0" "site_part" => string(5) "pages" "author_id" => string(1) "0" "postdate" => string(19) "0000-00-00 00:00:00" "change_user_id" => string(1) "1" "changedate" => string(19) "2017-11-29 02:06:24" "page_template" => string(4) "page" "entity_type" => string(5) "pages" "entity_id" => string(1) "0" "clear_offset_top" => string(1) "0" "clear_offset_left" => string(1) "0" "page_block_background_color" => string(6) "FFFFFF" "header_image" => string(0) "" "clear_offset_top_mobile" => string(1) "0" "clear_offset_left_mobile" => string(1) "0" "header_image_mobile" => string(0) "" "content_mobile" => NULL "canvas_position" => string(8) "top-left" "canvas_position_mobile" => string(8) "top-left" "f_key" => string(1) "3" "lang_id" => string(1) "1" "name" => string(18) "Продукция" "header" => string(18) "Продукция" "short_description" => string(0) "" "content" => string(0) "" "title" => string(18) "Продукция" "keywords" => string(0) "" "description" => string(0) "" "right_col_text" => string(0) "" "header_font_size" => string(1) "0" "subheader_font_size" => string(1) "0" "subheader" => string(0) "" "promo_1" => string(1) "5" "promo_2" => string(1) "8" "promo_3" => string(1) "7" "promo_4" => string(1) "6" "corrector_approved" => string(1) "0" "_id" => string(1) "3" "_parent_id" => string(1) "0" ) "page" => array(57) ( "id" => string(1) "3" "nameurl" => string(10) "production" "bg_img" => string(15) "bg_karmadon.jpg" "priority" => string(1) "8" "visible" => string(1) "1" "parent_id" => string(1) "0" "b_parent_page" => string(1) "0" "b_unique_template" => string(1) "1" "b_unique_cms_template" => string(1) "1" "b_no_nest" => string(1) "0" "b_sortable" => string(1) "1" "b_can_has_childrens" => string(1) "0" "b_not_delete" => string(1) "1" "url" => string(10) "production" "cms_url" => string(9) "catalogue" "custom_template" => string(0) "" "inherit_custom_templates" => string(1) "0" "site_part" => string(5) "pages" "author_id" => string(1) "0" "postdate" => string(19) "0000-00-00 00:00:00" "change_user_id" => string(1) "1" "changedate" => string(19) "2017-11-29 02:06:24" "page_template" => string(4) "page" "entity_type" => string(5) "pages" "entity_id" => string(1) "0" "clear_offset_top" => string(1) "0" "clear_offset_left" => string(1) "0" "page_block_background_color" => string(6) "FFFFFF" "header_image" => string(0) "" "clear_offset_top_mobile" => string(1) "0" "clear_offset_left_mobile" => string(1) "0" "header_image_mobile" => string(0) "" "content_mobile" => NULL "canvas_position" => string(8) "top-left" "canvas_position_mobile" => string(8) "top-left" "f_key" => string(1) "3" "lang_id" => string(1) "1" "name" => string(18) "Продукция" "header" => string(18) "Продукция" "short_description" => string(0) "" "content" => string(0) "" "title" => string(18) "Продукция" "keywords" => string(0) "" "description" => string(0) "" "right_col_text" => string(0) "" "header_font_size" => string(1) "0" "subheader_font_size" => string(1) "0" "subheader" => string(0) "" "promo_1" => string(1) "5" "promo_2" => string(1) "8" "promo_3" => string(1) "7" "promo_4" => string(1) "6" "corrector_approved" => string(1) "0" "clear_w" => integer 0 "clear_h" => integer 0 "clear_w_mobile" => integer 0 "clear_h_mobile" => integer 0 ) "prod_categories" => array(5) ( 0 => array(27) ( "id" => string(1) "5" "name" => string(61) "Молоко и кисломолочная продукция" "name_list" => string(0) "" "header" => string(0) "" "visible" => string(1) "1" "priority" => string(1) "1" "author_id" => string(1) "2" "postdate" => string(19) "2018-07-31 00:14:12" "change_user_id" => string(2) "13" "changedate" => string(19) "2020-07-29 10:38:31" "filename" => string(0) "" "filename_preview" => string(16) "category-1-2.png" "content" => string(0) "" "nameurl" => string(0) "" "title" => string(0) "" "description" => string(0) "" "keywords" => string(0) "" "content_toper" => NULL "page_block_background_color" => string(0) "" "clear_offset_top" => string(1) "0" "clear_offset_left" => string(1) "0" "clear_offset_top_mobile" => string(1) "0" "clear_offset_left_mobile" => string(1) "0" "header_image" => string(0) "" "header_image_mobile" => string(0) "" "canvas_position" => string(8) "top-left" "canvas_position_mobile" => string(8) "top-left" ) 1 => array(27) ( "id" => string(1) "2" "name" => string(33) "Сметанный продукт" "name_list" => string(14) "Сметана" "header" => string(14) "Сметана" "visible" => string(1) "1" "priority" => string(1) "2" "author_id" => string(1) "0" "postdate" => string(19) "0000-00-00 00:00:00" "change_user_id" => string(2) "13" "changedate" => string(19) "2020-07-09 16:40:39" "filename" => string(0) "" "filename_preview" => string(14) "category-2.png" "content" => string(2908) "<p>Минеральные источники республики Северная Осетия — Алания по своим лечебным свойствам не уступают лучшим водам Кавказск …" "nameurl" => string(6) "aryana" "title" => string(52) "Питьевая вода «Ариана»" "description" => string(0) "" "keywords" => string(0) "" "content_toper" => string(780) "<p>Вода питьевого качества «Ариана» отличается низкой минерализацией и сбалансированным химическим составом, что обу …" "page_block_background_color" => string(6) "074669" "clear_offset_top" => string(1) "0" "clear_offset_left" => string(1) "0" "clear_offset_top_mobile" => string(1) "0" "clear_offset_left_mobile" => string(1) "0" "header_image" => string(0) "" "header_image_mobile" => string(0) "" "canvas_position" => string(12) "bottom-right" "canvas_position_mobile" => string(12) "bottom-right" ) 2 => array(27) ( "id" => string(1) "3" "name" => string(12) "Спреды" "name_list" => string(0) "" "header" => string(0) "" "visible" => string(1) "1" "priority" => string(1) "3" "author_id" => string(1) "1" "postdate" => string(19) "2018-07-26 10:11:32" "change_user_id" => string(2) "13" "changedate" => string(19) "2020-07-09 16:40:48" "filename" => string(0) "" "filename_preview" => string(14) "category-5.png" "content" => string(0) "" "nameurl" => string(0) "" "title" => string(0) "" "description" => string(0) "" "keywords" => string(0) "" "content_toper" => NULL "page_block_background_color" => string(0) "" "clear_offset_top" => string(1) "0" "clear_offset_left" => string(1) "0" "clear_offset_top_mobile" => string(1) "0" "clear_offset_left_mobile" => string(1) "0" "header_image" => string(0) "" "header_image_mobile" => string(0) "" "canvas_position" => string(8) "top-left" "canvas_position_mobile" => string(8) "top-left" ) 3 => array(27) ( "id" => string(1) "6" "name" => string(6) "Сыр" "name_list" => string(0) "" "header" => string(0) "" "visible" => string(1) "1" "priority" => string(1) "4" "author_id" => string(1) "1" "postdate" => string(19) "2019-12-18 19:42:49" "change_user_id" => string(1) "1" "changedate" => string(19) "2019-12-18 19:43:02" "filename" => string(0) "" "filename_preview" => string(14) "category-4.png" "content" => string(0) "" "nameurl" => string(0) "" "title" => string(0) "" "description" => string(0) "" "keywords" => string(0) "" "content_toper" => NULL "page_block_background_color" => string(0) "" "clear_offset_top" => string(1) "0" "clear_offset_left" => string(1) "0" "clear_offset_top_mobile" => string(1) "0" "clear_offset_left_mobile" => string(1) "0" "header_image" => string(0) "" "header_image_mobile" => string(0) "" "canvas_position" => string(8) "top-left" "canvas_position_mobile" => string(8) "top-left" ) 4 => array(27) ( "id" => string(1) "4" "name" => string(12) "Творог" "name_list" => string(0) "" "header" => string(0) "" "visible" => string(1) "1" "priority" => string(1) "5" "author_id" => string(1) "2" "postdate" => string(19) "2018-07-31 00:03:58" "change_user_id" => string(2) "13" "changedate" => string(19) "2020-07-29 12:16:36" "filename" => string(0) "" "filename_preview" => string(14) "category-3.png" "content" => string(0) "" "nameurl" => string(0) "" "title" => string(0) "" "description" => string(0) "" "keywords" => string(0) "" "content_toper" => NULL "page_block_background_color" => string(0) "" "clear_offset_top" => string(1) "0" "clear_offset_left" => string(1) "0" "clear_offset_top_mobile" => string(1) "0" "clear_offset_left_mobile" => string(1) "0" "header_image" => string(0) "" "header_image_mobile" => string(0) "" "canvas_position" => string(8) "top-left" "canvas_position_mobile" => string(8) "top-left" ) ) ) protected config => object Config_Group(8){ public base_url => string(19) "http://goryanka.ru/" public start_url => string(1) "/" public http_host => string(11) "goryanka.ru" public output_charset => string(5) "utf-8" public file_paths => array(8) ( "pages" => string(12) "/data/pages/" "settings" => string(15) "/data/settings/" "attached_pics" => string(20) "/data/attached_pics/" "page_blocks" => string(18) "/data/page_blocks/" "articles" => string(15) "/data/articles/" "products" => string(15) "/data/products/" "prod_categories" => string(22) "/data/prod_categories/" "awards" => string(13) "/data/awards/" ) public news_date_format => string(8) "%d.%m.%Y" public cache_dir => string(11) "data/cache/" public products_upload => string(14) "data/products/" }
protected languageModel => object Model_Language(6){ protected db => object Database_MySQLi(6)
protected settingsModel => object Model_Settings(6){ protected _connection_id => string(40) "5f8b8d95d973c15fa2e8f7d00da8b2ffdbccb70a" protected _identifier => string(1) "`" public last_query => string(192) " SELECT t.* FROM gor_prod_categories t …" protected _instance => string(7) "default" protected _connection => object mysqli(19)
protected table => string(9) "languages" protected prefix => string(4) "gor_" protected config => object Config_Group(8){ 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 stat => NULL public sqlstate => NULL public protocol_version => NULL public thread_id => NULL public warning_count => NULL }
protected _config => array(5) ( "type" => string(6) "MySQLi" "connection" => array(3) ( "hostname" => string(9) "localhost" "database" => string(13) "tsroman-1_gor" "persistent" => bool FALSE ) "table_prefix" => string(4) "gor_" "charset" => string(4) "utf8" "caching" => bool FALSE ) }{ public base_url => string(19) "http://goryanka.ru/" public start_url => string(1) "/" public http_host => string(11) "goryanka.ru" public output_charset => string(5) "utf-8" public file_paths => array(8) ( "pages" => string(12) "/data/pages/" "settings" => string(15) "/data/settings/" "attached_pics" => string(20) "/data/attached_pics/" "page_blocks" => string(18) "/data/page_blocks/" "articles" => string(15) "/data/articles/" "products" => string(15) "/data/products/" "prod_categories" => string(22) "/data/prod_categories/" "awards" => string(13) "/data/awards/" ) public news_date_format => string(8) "%d.%m.%Y" public cache_dir => string(11) "data/cache/" public products_upload => string(14) "data/products/" }
protected errors => array(0) protected multilangTables => array(1) ( 0 => string(5) "pages" ) }{ protected db => object Database_MySQLi(6)
protected pagesModel => object Model_Pages(6){ protected _connection_id => string(40) "5f8b8d95d973c15fa2e8f7d00da8b2ffdbccb70a" protected _identifier => string(1) "`" public last_query => string(192) " SELECT t.* FROM gor_prod_categories t …" protected _instance => string(7) "default" protected _connection => object mysqli(19)
protected table => string(8) "settings" protected prefix => string(4) "gor_" protected config => object Config_Group(8){ 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 stat => NULL public sqlstate => NULL public protocol_version => NULL public thread_id => NULL public warning_count => NULL }
protected _config => array(5) ( "type" => string(6) "MySQLi" "connection" => array(3) ( "hostname" => string(9) "localhost" "database" => string(13) "tsroman-1_gor" "persistent" => bool FALSE ) "table_prefix" => string(4) "gor_" "charset" => string(4) "utf8" "caching" => bool FALSE ) }{ public base_url => string(19) "http://goryanka.ru/" public start_url => string(1) "/" public http_host => string(11) "goryanka.ru" public output_charset => string(5) "utf-8" public file_paths => array(8) ( "pages" => string(12) "/data/pages/" "settings" => string(15) "/data/settings/" "attached_pics" => string(20) "/data/attached_pics/" "page_blocks" => string(18) "/data/page_blocks/" "articles" => string(15) "/data/articles/" "products" => string(15) "/data/products/" "prod_categories" => string(22) "/data/prod_categories/" "awards" => string(13) "/data/awards/" ) public news_date_format => string(8) "%d.%m.%Y" public cache_dir => string(11) "data/cache/" public products_upload => string(14) "data/products/" }
protected errors => array(0) protected multilangTables => array(1) ( 0 => string(5) "pages" ) }{ protected db => object Database_MySQLi(6)
protected navigationModel => object Model_Navigation(8){ protected _connection_id => string(40) "5f8b8d95d973c15fa2e8f7d00da8b2ffdbccb70a" protected _identifier => string(1) "`" public last_query => string(192) " SELECT t.* FROM gor_prod_categories t …" protected _instance => string(7) "default" protected _connection => object mysqli(19)
protected table => string(5) "pages" protected prefix => string(4) "gor_" protected config => object Config_Group(8){ 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 stat => NULL public sqlstate => NULL public protocol_version => NULL public thread_id => NULL public warning_count => NULL }
protected _config => array(5) ( "type" => string(6) "MySQLi" "connection" => array(3) ( "hostname" => string(9) "localhost" "database" => string(13) "tsroman-1_gor" "persistent" => bool FALSE ) "table_prefix" => string(4) "gor_" "charset" => string(4) "utf8" "caching" => bool FALSE ) }{ public base_url => string(19) "http://goryanka.ru/" public start_url => string(1) "/" public http_host => string(11) "goryanka.ru" public output_charset => string(5) "utf-8" public file_paths => array(8) ( "pages" => string(12) "/data/pages/" "settings" => string(15) "/data/settings/" "attached_pics" => string(20) "/data/attached_pics/" "page_blocks" => string(18) "/data/page_blocks/" "articles" => string(15) "/data/articles/" "products" => string(15) "/data/products/" "prod_categories" => string(22) "/data/prod_categories/" "awards" => string(13) "/data/awards/" ) public news_date_format => string(8) "%d.%m.%Y" public cache_dir => string(11) "data/cache/" public products_upload => string(14) "data/products/" }
protected errors => array(0) protected multilangTables => array(1) ( 0 => string(5) "pages" ) }{ private site_part => string(5) "pages" protected db => object Database_MySQLi(6)
protected attachedpicsModel => object Model_Attachedpics(6){ protected _connection_id => string(40) "5f8b8d95d973c15fa2e8f7d00da8b2ffdbccb70a" protected _identifier => string(1) "`" public last_query => string(192) " SELECT t.* FROM gor_prod_categories t …" protected _instance => string(7) "default" protected _connection => object mysqli(19)
protected table => string(5) "pages" protected prefix => string(4) "gor_" protected config => object Config_Group(8){ 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 stat => NULL public sqlstate => NULL public protocol_version => NULL public thread_id => NULL public warning_count => NULL }
protected _config => array(5) ( "type" => string(6) "MySQLi" "connection" => array(3) ( "hostname" => string(9) "localhost" "database" => string(13) "tsroman-1_gor" "persistent" => bool FALSE ) "table_prefix" => string(4) "gor_" "charset" => string(4) "utf8" "caching" => bool FALSE ) }{ public base_url => string(19) "http://goryanka.ru/" public start_url => string(1) "/" public http_host => string(11) "goryanka.ru" public output_charset => string(5) "utf-8" public file_paths => array(8) ( "pages" => string(12) "/data/pages/" "settings" => string(15) "/data/settings/" "attached_pics" => string(20) "/data/attached_pics/" "page_blocks" => string(18) "/data/page_blocks/" "articles" => string(15) "/data/articles/" "products" => string(15) "/data/products/" "prod_categories" => string(22) "/data/prod_categories/" "awards" => string(13) "/data/awards/" ) public news_date_format => string(8) "%d.%m.%Y" public cache_dir => string(11) "data/cache/" public products_upload => string(14) "data/products/" }
protected errors => array(0) protected multilangTables => array(1) ( 0 => string(5) "pages" ) public db_table_name => string(5) "pages" }{ protected db => object Database_MySQLi(6)
protected session => object Session_Native(5){ protected _connection_id => string(40) "5f8b8d95d973c15fa2e8f7d00da8b2ffdbccb70a" protected _identifier => string(1) "`" public last_query => string(192) " SELECT t.* FROM gor_prod_categories t …" protected _instance => string(7) "default" protected _connection => object mysqli(19)
protected table => string(13) "attached_pics" protected prefix => string(4) "gor_" protected config => object Config_Group(8){ 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 stat => NULL public sqlstate => NULL public protocol_version => NULL public thread_id => NULL public warning_count => NULL }
protected _config => array(5) ( "type" => string(6) "MySQLi" "connection" => array(3) ( "hostname" => string(9) "localhost" "database" => string(13) "tsroman-1_gor" "persistent" => bool FALSE ) "table_prefix" => string(4) "gor_" "charset" => string(4) "utf8" "caching" => bool FALSE ) }{ public base_url => string(19) "http://goryanka.ru/" public start_url => string(1) "/" public http_host => string(11) "goryanka.ru" public output_charset => string(5) "utf-8" public file_paths => array(8) ( "pages" => string(12) "/data/pages/" "settings" => string(15) "/data/settings/" "attached_pics" => string(20) "/data/attached_pics/" "page_blocks" => string(18) "/data/page_blocks/" "articles" => string(15) "/data/articles/" "products" => string(15) "/data/products/" "prod_categories" => string(22) "/data/prod_categories/" "awards" => string(13) "/data/awards/" ) public news_date_format => string(8) "%d.%m.%Y" public cache_dir => string(11) "data/cache/" public products_upload => string(14) "data/products/" }
protected errors => array(0) protected multilangTables => array(1) ( 0 => string(5) "pages" ) }{ protected _name => string(7) "session" protected _lifetime => integer 0 protected _encrypted => bool FALSE protected _data => array(0) protected _destroyed => bool FALSE }
protected lang => array(10) ( "id" => string(1) "1" "name" => string(14) "Русский" "code" => string(2) "ru" "code_name" => string(3) "Rus" "default" => string(1) "1" "priority" => string(1) "1" "author_id" => string(1) "3" "postdate" => string(19) "2012-05-07 14:21:21" "change_user_id" => string(1) "3" "changedate" => string(19) "2014-09-25 22:47:28" ) 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.1" protected _secure => bool FALSE protected _referrer => NULL protected _route => object Route(5)
public response => object Response(5){ protected _filters => array(0) protected _uri => string(54) "(<lang>/)(<controller>(/<action>(/<id>(/<overflow>))))" protected _regex => array(2) ( "lang" => string(8) "[a-z]{2}" "overflow" => string(3) ".*?" ) protected _defaults => array(3) ( "lang" => string(2) "ru" "controller" => string(4) "home" "action" => string(5) "index" ) protected _route_regex => string(142) "#^(?:(?P<lang>[a-z]{2})/)?(?:(?P<controller>[^/.,;?\n]++)(?:/(?P<action>[^/.,;?\n]++)(?:/(?P<id>[^/.,;?\n]++)(?:/(?P<overflow>.* …" }
protected _routes => array(0) protected _header => object HTTP_Header(0){ }
protected _body => NULL protected _directory => string(0) "" protected _controller => string(10) "Production" protected _action => string(6) "detail" protected _uri => string(20) "production/detail/22" protected _external => bool FALSE protected _params => array(2) ( "lang" => string(2) "ru" "id" => string(2) "22" ) protected _get => array(1) ( "/production/detail/22/" => string(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.1" }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.1" protected _secure => bool FALSE protected _referrer => NULL protected _route => object Route(5)
{ protected _filters => array(0) protected _uri => string(54) "(<lang>/)(<controller>(/<action>(/<id>(/<overflow>))))" protected _regex => array(2) ( "lang" => string(8) "[a-z]{2}" "overflow" => string(3) ".*?" ) protected _defaults => array(3) ( "lang" => string(2) "ru" "controller" => string(4) "home" "action" => string(5) "index" ) protected _route_regex => string(142) "#^(?:(?P<lang>[a-z]{2})/)?(?:(?P<controller>[^/.,;?\n]++)(?:/(?P<action>[^/.,;?\n]++)(?:/(?P<id>[^/.,;?\n]++)(?:/(?P<overflow>.* …" }
protected _routes => array(0) protected _header => object HTTP_Header(0){ }
protected _body => NULL protected _directory => string(0) "" protected _controller => string(10) "Production" protected _action => string(6) "detail" protected _uri => string(20) "production/detail/22" protected _external => bool FALSE protected _params => array(2) ( "lang" => string(2) "ru" "id" => string(2) "22" ) protected _get => array(1) ( "/production/detail/22/" => string(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.1" }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 [ 993 ] » Kohana_Request_Client->execute(arguments)
0
object Request(19)
{ 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 _filters => array(0) protected _uri => string(54) "(<lang>/)(<controller>(/<action>(/<id>(/<overflow>))))" protected _regex => array(2) ( "lang" => string(8) "[a-z]{2}" "overflow" => string(3) ".*?" ) protected _defaults => array(3) ( "lang" => string(2) "ru" "controller" => string(4) "home" "action" => string(5) "index" ) protected _route_regex => string(142) "#^(?:(?P<lang>[a-z]{2})/)?(?:(?P<controller>[^/.,;?\n]++)(?:/(?P<action>[^/.,;?\n]++)(?:/(?P<id>[^/.,;?\n]++)(?:/(?P<overflow>.* …" }
protected _routes => array(0) protected _header => object HTTP_Header(0){ }
protected _body => NULL protected _directory => string(0) "" protected _controller => string(10) "Production" protected _action => string(6) "detail" protected _uri => string(20) "production/detail/22" protected _external => bool FALSE protected _params => array(2) ( "lang" => string(2) "ru" "id" => string(2) "22" ) protected _get => array(1) ( "/production/detail/22/" => string(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) }
}988 throw new Request_Exception('Unable to execute :uri without a Kohana_Request_Client', array( 989 ':uri' => $this->_uri, 990 )); 991 } 992 993 return $this->_client->execute($this); 994 } 995 996 /** 997 * Returns whether this request is the initial request Kohana received. 998 * 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();