APPPATH/classes/Controller/Index/Go.php [ 48 ]
43 $cost=$good->go_cost + $good->go_cost*$this->template->site_showpres/100;
44 }
45
46
47 $cost=number_format($cost, 2, ',', ' '); //меняем точку на запятую
48 if($good->br_id != ''){$brend="ТМ “".$brend_mas[$good->br_id]."”";}else{$brend='';}
49
50 if($good->go_mini < 1){$go_mini=1;}else{$go_mini=$good->go_mini;}
51 if($good->go_ost >= $go_mini){$ost='';}else{$ost='<span class="ost">Постачання від 3 до 7 днів!</span>';}
52 if($go_mini > 1 ){$mini='<span class="text_1">Мінімальна кіл. для замовлення </span><span class="text_3">'.$good->go_mini.'</span> <span class="text_1"> шт.</span><br />';}else{$mini='';}
53
-
APPPATH/classes/Controller/Index/Go.php [ 48 ] » Kohana_Core::error_handler(arguments)
0
integer 8
1
string(20) "Undefined offset: 94"
2
string(81) "/home/nn342420/kharkovkanc.com.ua/www/application/classes/Controller/Index/Go.php"
3
integer 48
4
array(13) ( "products_s" => NULL "id" => integer 40792 "titlen" => string(44) "Сумка_для_обуви_K20-600L-2_Kite" "usbrpr" => array(0) "brend_mas" => array(1) ( 0 => string(0) "" ) "good" => object Model_Good(34)
{ protected _table_name => string(5) "goods" protected _primary_key => string(5) "go_id" protected _belongs_to => array(1) ( "catalog" => array(2) ( "foreign_key" => string(5) "ca_id" "model" => string(7) "catalog" ) ) protected _has_many => array(1) ( "groups" => array(4) ( "foreign_key" => string(7) "good_id" "through" => string(12) "groups_goods" "far_key" => string(8) "group_id" "model" => string(5) "group" ) ) protected _has_one => array(0) protected _load_with => array(0) protected _validation => NULL protected _object => array(11) ( "go_id" => string(5) "40792" "ca_id" => string(5) "22524" "go_name" => string(46) "Сумка для обуви, K20-600L-2, Kite" "go_cost" => string(6) "216.29" "go_text" => string(0) "" "go_pack" => string(2) "25" "go_box" => string(1) "1" "go_mini" => string(1) "1" "go_ost" => string(1) "0" "go_main" => string(1) "0" "br_id" => string(2) "94" ) protected _changed => array(0) protected _original_values => array(11) ( "go_id" => string(5) "40792" "ca_id" => string(5) "22524" "go_name" => string(46) "Сумка для обуви, K20-600L-2, Kite" "go_cost" => string(6) "216.29" "go_text" => string(0) "" "go_pack" => string(2) "25" "go_box" => string(1) "1" "go_mini" => string(1) "1" "go_ost" => string(1) "0" "go_main" => string(1) "0" "br_id" => string(2) "94" ) protected _related => array(0) protected _valid => bool TRUE protected _loaded => bool TRUE protected _saved => bool FALSE protected _sorting => NULL protected _foreign_key_suffix => string(3) "_id" protected _object_name => string(4) "good" protected _object_plural => string(5) "goods" protected _table_columns => array(11) ( "go_id" => array(13) ( "type" => string(3) "int" "min" => string(11) "-2147483648" "max" => string(10) "2147483647" "column_name" => string(5) "go_id" "column_default" => NULL "data_type" => string(3) "int" "is_nullable" => bool FALSE "ordinal_position" => integer 1 "display" => string(2) "11" "comment" => string(39) "Идентифекатор товара" "extra" => string(14) "auto_increment" "key" => string(3) "PRI" "privileges" => string(31) "select,insert,update,references" ) "ca_id" => array(13) ( "type" => string(3) "int" "min" => string(11) "-2147483648" "max" => string(10) "2147483647" "column_name" => string(5) "ca_id" "column_default" => NULL "data_type" => string(3) "int" "is_nullable" => bool TRUE "ordinal_position" => integer 2 "display" => string(2) "11" "comment" => string(43) "Идентификатор каталога" "extra" => string(0) "" "key" => string(0) "" "privileges" => string(31) "select,insert,update,references" ) "go_name" => array(12) ( "type" => string(6) "string" "column_name" => string(7) "go_name" "column_default" => NULL "data_type" => string(7) "varchar" "is_nullable" => bool TRUE "ordinal_position" => integer 3 "character_maximum_length" => string(3) "255" "collation_name" => string(15) "utf8_unicode_ci" "comment" => string(29) "Название товара" "extra" => string(0) "" "key" => string(0) "" "privileges" => string(31) "select,insert,update,references" ) "go_cost" => array(12) ( "type" => string(5) "float" "column_name" => string(7) "go_cost" "column_default" => NULL "data_type" => string(5) "float" "is_nullable" => bool TRUE "ordinal_position" => integer 4 "numeric_scale" => string(1) "2" "numeric_precision" => string(2) "12" "comment" => string(21) "Цена товара" "extra" => string(0) "" "key" => string(0) "" "privileges" => string(31) "select,insert,update,references" ) "go_text" => array(12) ( "type" => string(6) "string" "character_maximum_length" => string(5) "65535" "column_name" => string(7) "go_text" "column_default" => NULL "data_type" => string(4) "text" "is_nullable" => bool TRUE "ordinal_position" => integer 5 "collation_name" => string(15) "utf8_unicode_ci" "comment" => string(29) "Описание товара" "extra" => string(0) "" "key" => string(0) "" "privileges" => string(31) "select,insert,update,references" ) "go_pack" => array(13) ( "type" => string(3) "int" "min" => string(11) "-2147483648" "max" => string(10) "2147483647" "column_name" => string(7) "go_pack" "column_default" => string(1) "1" "data_type" => string(3) "int" "is_nullable" => bool TRUE "ordinal_position" => integer 6 "display" => string(2) "11" "comment" => string(53) "Кодичество товара в упаковке" "extra" => string(0) "" "key" => string(0) "" "privileges" => string(31) "select,insert,update,references" ) "go_box" => array(13) ( "type" => string(3) "int" "min" => string(11) "-2147483648" "max" => string(10) "2147483647" "column_name" => string(6) "go_box" "column_default" => string(1) "1" "data_type" => string(3) "int" "is_nullable" => bool TRUE "ordinal_position" => integer 7 "display" => string(2) "11" "comment" => string(51) "Количество товара в коробке" "extra" => string(0) "" "key" => string(0) "" "privileges" => string(31) "select,insert,update,references" ) "go_mini" => array(13) ( "type" => string(3) "int" "min" => string(11) "-2147483648" "max" => string(10) "2147483647" "column_name" => string(7) "go_mini" "column_default" => string(1) "1" "data_type" => string(3) "int" "is_nullable" => bool FALSE "ordinal_position" => integer 8 "display" => string(2) "11" "comment" => string(63) "Минимальное количество для заказа" "extra" => string(0) "" "key" => string(0) "" "privileges" => string(31) "select,insert,update,references" ) "go_ost" => array(13) ( "type" => string(3) "int" "min" => string(11) "-2147483648" "max" => string(10) "2147483647" "column_name" => string(6) "go_ost" "column_default" => string(7) "1000000" "data_type" => string(3) "int" "is_nullable" => bool TRUE "ordinal_position" => integer 9 "display" => string(2) "11" "comment" => string(34) "Останток на складе" "extra" => string(0) "" "key" => string(0) "" "privileges" => string(31) "select,insert,update,references" ) "go_main" => array(13) ( "type" => string(3) "int" "min" => string(11) "-2147483648" "max" => string(10) "2147483647" "column_name" => string(7) "go_main" "column_default" => string(1) "0" "data_type" => string(3) "int" "is_nullable" => bool FALSE "ordinal_position" => integer 10 "display" => string(1) "1" "comment" => string(81) "Показывать на главной странице 1- показывать" "extra" => string(0) "" "key" => string(0) "" "privileges" => string(31) "select,insert,update,references" ) "br_id" => array(13) ( "type" => string(3) "int" "min" => string(11) "-2147483648" "max" => string(10) "2147483647" "column_name" => string(5) "br_id" "column_default" => NULL "data_type" => string(3) "int" "is_nullable" => bool TRUE "ordinal_position" => integer 11 "display" => string(2) "11" "comment" => string(15) "ID бренда" "extra" => string(0) "" "key" => string(0) "" "privileges" => string(31) "select,insert,update,references" ) ) protected _updated_column => NULL protected _created_column => NULL protected _serialize_columns => array(0) protected _primary_key_value => string(5) "40792" protected _table_names_plural => bool TRUE protected _reload_on_wakeup => bool TRUE protected _db => object Database_MySQL(6)
"folder_goods" => string(5) "40792" "name" => string(46) "Сумка для обуви, K20-600L-2, Kite" "text" => string(0) "" "desh" => float 0 "precbrend" => integer 0 "total_percentage" => integer 0 "cost" => string(6) "216,29" ){ protected _connection_id => string(40) "03c0dce3fb49ca958c92441df2ae0c0bb939e637" protected _identifier => string(1) "`" public last_query => string(390) "SELECT `good`.`go_id` AS `go_id`, `good`.`ca_id` AS `ca_id`, `good`.`go_name` AS `go_name`, `good`.`go_cost` AS `go_cost`, `good …" protected _instance => string(7) "default" protected _connection => resource(mysql link) protected _config => array(6) ( "type" => string(5) "MySQL" "connection" => array(3) ( "hostname" => string(20) "nn342420.mysql.tools" "database" => string(11) "nn342420_db" "persistent" => bool FALSE ) "table_prefix" => string(0) "" "charset" => string(4) "utf8" "caching" => bool FALSE "profiling" => bool TRUE ) }
protected _db_group => NULL protected _db_applied => array(0) protected _db_pending => array(0) protected _db_reset => bool TRUE protected _db_builder => NULL protected _with_applied => array(0) protected _cast_data => array(0) protected _errors_filename => string(4) "good" }43 $cost=$good->go_cost + $good->go_cost*$this->template->site_showpres/100; 44 } 45 46 47 $cost=number_format($cost, 2, ',', ' '); //меняем точку на запятую 48 if($good->br_id != ''){$brend="ТМ “".$brend_mas[$good->br_id]."”";}else{$brend='';} 49 50 if($good->go_mini < 1){$go_mini=1;}else{$go_mini=$good->go_mini;} 51 if($good->go_ost >= $go_mini){$ost='';}else{$ost='<span class="ost">Постачання від 3 до 7 днів!</span>';} 52 if($go_mini > 1 ){$mini='<span class="text_1">Мінімальна кіл. для замовлення </span><span class="text_3">'.$good->go_mini.'</span> <span class="text_1"> шт.</span><br />';}else{$mini='';} 53
-
SYSPATH/classes/Kohana/Controller.php [ 84 ] » Controller_Index_Go->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_Index_Go(7)
{ public template => object View(2)
{ protected _file => string(73) "/home/nn342420/kharkovkanc.com.ua/www/application/views/index/v_index.php" protected _data => array(19) ( "open_site" => string(0) "" "site_name" => string(20) "ХарківКанц" "site_description" => string(72) "Інтернет-магазин канцтоварів в Харкові" "site_keywords" => string(311) "харків канц, Купити канцтовари, інтернет-магазин канцтоварів, Харків, магазин, канцтовари, kharkovkanc.com.ua, канцтовари оптом, …" "site_showpres" => string(4) "0.00" "site_minzak" => string(3) "500" "page_title" => NULL "styles" => array(3) ( 0 => string(18) "media/css/main.css" 1 => string(19) "media/css/fonts.css" 2 => string(28) "/lib/UItTop/css/ui.totop.css" ) "scripts" => array(9) ( 0 => string(28) "media/js/jquery-1.8.2.min.js" 1 => string(17) "media/js/vcart.js" 2 => string(18) "media/js/search.js" 3 => string(22) "media/js/jquery_002.js" 4 => string(21) "media/js/bootstrap.js" 5 => string(22) "media/js/jquery_003.js" 6 => string(24) "/lib/UItTop/js/easing.js" 7 => string(33) "/lib/UItTop/js/jquery.ui.totop.js" 8 => string(21) "/lib/UItTop/js/top.js" ) "block_header" => array(1) ( 0 => object Response(5)
protected user => NULL protected auth => object Auth_ORM(2){ protected _status => integer 200 protected _header => object HTTP_Header(0)
) "block_center" => NULL "block_footer" => array(1) ( 0 => object Response(5){ }
protected _body => string(2183) "<div id='logobox'> <div id='logo'> <a href="/" title="Главная страница"></a> </div> …" protected _cookies => array(0) protected _protocol => string(8) "HTTP/1.0" }{ protected _status => integer 200 protected _header => object HTTP_Header(0)
) "user_percentage" => integer 0 "user_vip" => integer 0 "usbrpr" => array(0) "vnal" => NULL "vnalchek" => string(510) " <div id="aut1"> <form method="GET" action="/ca_run/3/1/" name="myform"> <input …" "page_verts" => object Database_MySQL_Result(7){ }
protected _body => string(170) "Канцтовари у Харкові | інтернет-магазин | Сайт зроблений в <a href="http://itlux.com.ua">ITlux.com.ua</a> | © 2013 - 2022 " protected _cookies => array(0) protected _protocol => string(8) "HTTP/1.0" }{ protected _internal_row => integer 0 protected _query => string(366) "SELECT `page`.`pg_id` AS `pg_id`, `page`.`pg_alias` AS `pg_alias`, `page`.`pg_father` AS `pg_father`, `page`.`pg_name` AS `pg_na …" protected _result => resource(mysql result) protected _total_rows => integer 0 protected _current_row => integer 0 protected _as_object => string(10) "Model_Page" protected _object_params => NULL }
"user" => string(0) "" ) }{ protected _session => object Session_Cookie(5)
protected session => object Session_Database(11){ protected _name => string(7) "session" protected _lifetime => integer 432000 protected _encrypted => string(7) "default" protected _data => array(0) protected _destroyed => bool FALSE }
protected _config => object Config_Group(7){ public driver => string(3) "ORM" public hash_method => string(6) "sha256" public hash_key => string(25) "ggdfklgdhgkldfhgkl456436g" public lifetime => integer 1209600 public session_type => string(6) "cookie" public session_key => string(9) "auth_user" public users => array(0) }
}{ protected _db => object Database_MySQL(6)
public auto_render => bool TRUE public request => object Request(19){ protected _connection_id => string(40) "03c0dce3fb49ca958c92441df2ae0c0bb939e637" protected _identifier => string(1) "`" public last_query => string(390) "SELECT `good`.`go_id` AS `go_id`, `good`.`ca_id` AS `ca_id`, `good`.`go_name` AS `go_name`, `good`.`go_cost` AS `go_cost`, `good …" protected _instance => string(7) "default" protected _connection => resource(mysql link) protected _config => array(6) ( "type" => string(5) "MySQL" "connection" => array(3) ( "hostname" => string(20) "nn342420.mysql.tools" "database" => string(11) "nn342420_db" "persistent" => bool FALSE ) "table_prefix" => string(0) "" "charset" => string(4) "utf8" "caching" => bool FALSE "profiling" => bool TRUE ) }
protected _table => string(8) "sessions" protected _columns => array(3) ( "session_id" => string(10) "session_id" "last_active" => string(11) "last_active" "contents" => string(8) "contents" ) protected _gc => integer 500 protected _session_id => string(23) "66067720566d29-84535044" protected _update_id => NULL protected _name => string(7) "session" protected _lifetime => integer 432000 protected _encrypted => string(7) "default" protected _data => array(0) protected _destroyed => bool FALSE }{ protected _requested_with => NULL protected _method => string(3) "GET" protected _protocol => string(8) "HTTP/1.0" protected _secure => bool FALSE protected _referrer => NULL protected _route => object Route(5)
public response => object Response(5){ protected _filters => array(0) protected _uri => string(20) "go(/<id>(/<titlen>))" protected _regex => array(0) protected _defaults => array(3) ( "directory" => string(5) "index" "action" => string(5) "index" "controller" => string(2) "go" ) protected _route_regex => string(64) "#^go(?:/(?P<id>[^/.,;?\n]++)(?:/(?P<titlen>[^/.,;?\n]++))?)?$#uD" }
protected _routes => array(0) protected _header => object HTTP_Header(0){ }
protected _body => NULL protected _directory => string(5) "Index" protected _controller => string(2) "Go" protected _action => string(5) "index" protected _uri => string(53) "go/40792/Сумка_для_обуви_K20-600L-2_Kite" protected _external => bool FALSE protected _params => array(2) ( "id" => string(5) "40792" "titlen" => string(44) "Сумка_для_обуви_K20-600L-2_Kite" ) 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 FALSE protected _referrer => NULL protected _route => object Route(5)
{ protected _filters => array(0) protected _uri => string(20) "go(/<id>(/<titlen>))" protected _regex => array(0) protected _defaults => array(3) ( "directory" => string(5) "index" "action" => string(5) "index" "controller" => string(2) "go" ) protected _route_regex => string(64) "#^go(?:/(?P<id>[^/.,;?\n]++)(?:/(?P<titlen>[^/.,;?\n]++))?)?$#uD" }
protected _routes => array(0) protected _header => object HTTP_Header(0){ }
protected _body => NULL protected _directory => string(5) "Index" protected _controller => string(2) "Go" protected _action => string(5) "index" protected _uri => string(53) "go/40792/Сумка_для_обуви_K20-600L-2_Kite" protected _external => bool FALSE protected _params => array(2) ( "id" => string(5) "40792" "titlen" => string(44) "Сумка_для_обуви_K20-600L-2_Kite" ) 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 FALSE protected _referrer => NULL protected _route => object Route(5)
{ protected _filters => array(0) protected _uri => string(20) "go(/<id>(/<titlen>))" protected _regex => array(0) protected _defaults => array(3) ( "directory" => string(5) "index" "action" => string(5) "index" "controller" => string(2) "go" ) protected _route_regex => string(64) "#^go(?:/(?P<id>[^/.,;?\n]++)(?:/(?P<titlen>[^/.,;?\n]++))?)?$#uD" }
protected _routes => array(0) protected _header => object HTTP_Header(0){ }
protected _body => NULL protected _directory => string(5) "Index" protected _controller => string(2) "Go" protected _action => string(5) "index" protected _uri => string(53) "go/40792/Сумка_для_обуви_K20-600L-2_Kite" protected _external => bool FALSE protected _params => array(2) ( "id" => string(5) "40792" "titlen" => string(44) "Сумка_для_обуви_K20-600L-2_Kite" ) 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 [ 118 ] » Kohana_Request->execute()
113 /** 114 * Execute the main request. A source of the URI can be passed, eg: $_SERVER['PATH_INFO']. 115 * If no source is specified, the URI will be automatically detected. 116 */ 117 echo Request::factory(TRUE, array(), FALSE) 118 ->execute() 119 ->send_headers(TRUE) 120 ->body(); 121 }