APPPATH/classes/controller/app/product.php [ 27 ]
22
23 $product = new Model_Product($id);
24 $data = array();
25
26 if(!$product->loaded() || $product->is_variant || ! $product->is_active_in_language()) {
27 throw new HTTP_Exception_404();
28 }
29 $errors = array();
30 $gg_data = array();
31
32 if ($this->request->post()) {
-
{PHP internal call} » Controller_App_Product->action_show()
-
SYSPATH/classes/kohana/request/client/internal.php [ 128 ] » ReflectionMethod->invoke(arguments)
0
object Controller_App_Product(18)
{ protected _actions_without_template => array(5) ( 0 => string(25) "ajax_validate_width_range" 1 => string(24) "ajax_table_variant_modal" 2 => string(24) "ajax_recalculate_variant" 3 => string(24) "ajax_change_tablevariant" 4 => string(46) "ajax_recalculate_variant_without_main_features" ) protected _banner_category_id => NULL protected _seo_template => NULL protected _language => object Model_Language(35)
{ protected _belongs_to => array(1) ( "currencies" => array(2) ( "model" => string(8) "currency" "foreign_key" => string(11) "currency_id" ) ) protected _cache_ids => array(0) protected _has_one => array(0) protected _has_many => array(0) protected _load_with => array(0) protected _validation => NULL protected _object => array(12) ( "id" => string(1) "1" "code" => string(2) "pl" "name" => string(6) "polski" "timezone" => string(13) "Europe/Warsaw" "locale" => string(34) "pl_PL.utf-8;pl;Polish_Poland.28592" "document_code" => string(5) "pl-pl" "native_name" => string(6) "polski" "date_format" => string(10) "YYYY-mm-dd" "is_active" => string(1) "1" "is_default" => string(1) "1" "currency_id" => string(1) "1" "decimal_value" => string(1) "1" ) protected _changed => array(0) protected _original_values => array(12) ( "id" => string(1) "1" "code" => string(2) "pl" "name" => string(6) "polski" "timezone" => string(13) "Europe/Warsaw" "locale" => string(34) "pl_PL.utf-8;pl;Polish_Poland.28592" "document_code" => string(5) "pl-pl" "native_name" => string(6) "polski" "date_format" => string(10) "YYYY-mm-dd" "is_active" => string(1) "1" "is_default" => string(1) "1" "currency_id" => string(1) "1" "decimal_value" => string(1) "1" ) 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(8) "language" protected _object_plural => string(9) "languages" protected _table_name => string(9) "languages" protected _table_columns => array(12) ( "id" => array(13) ( "type" => string(3) "int" "min" => string(1) "0" "max" => string(10) "4294967295" "column_name" => string(2) "id" "column_default" => NULL "data_type" => string(12) "int unsigned" "is_nullable" => bool FALSE "ordinal_position" => integer 1 "display" => string(2) "10" "comment" => string(0) "" "extra" => string(14) "auto_increment" "key" => string(3) "PRI" "privileges" => string(31) "select,insert,update,references" ) "code" => array(12) ( "type" => string(6) "string" "column_name" => string(4) "code" "column_default" => NULL "data_type" => string(7) "varchar" "is_nullable" => bool FALSE "ordinal_position" => integer 2 "character_maximum_length" => string(1) "5" "collation_name" => string(15) "utf8_unicode_ci" "comment" => string(0) "" "extra" => string(0) "" "key" => string(0) "" "privileges" => string(31) "select,insert,update,references" ) "name" => array(12) ( "type" => string(6) "string" "column_name" => string(4) "name" "column_default" => NULL "data_type" => string(7) "varchar" "is_nullable" => bool FALSE "ordinal_position" => integer 3 "character_maximum_length" => string(2) "25" "collation_name" => string(15) "utf8_unicode_ci" "comment" => string(0) "" "extra" => string(0) "" "key" => string(0) "" "privileges" => string(31) "select,insert,update,references" ) "timezone" => array(12) ( "type" => string(6) "string" "column_name" => string(8) "timezone" "column_default" => NULL "data_type" => string(7) "varchar" "is_nullable" => bool FALSE "ordinal_position" => integer 4 "character_maximum_length" => string(2) "50" "collation_name" => string(15) "utf8_unicode_ci" "comment" => string(0) "" "extra" => string(0) "" "key" => string(0) "" "privileges" => string(31) "select,insert,update,references" ) "locale" => array(12) ( "type" => string(6) "string" "column_name" => string(6) "locale" "column_default" => NULL "data_type" => string(7) "varchar" "is_nullable" => bool FALSE "ordinal_position" => integer 5 "character_maximum_length" => string(2) "50" "collation_name" => string(15) "utf8_unicode_ci" "comment" => string(0) "" "extra" => string(0) "" "key" => string(0) "" "privileges" => string(31) "select,insert,update,references" ) "document_code" => array(12) ( "type" => string(6) "string" "column_name" => string(13) "document_code" "column_default" => NULL "data_type" => string(7) "varchar" "is_nullable" => bool FALSE "ordinal_position" => integer 6 "character_maximum_length" => string(2) "50" "collation_name" => string(15) "utf8_unicode_ci" "comment" => string(0) "" "extra" => string(0) "" "key" => string(0) "" "privileges" => string(31) "select,insert,update,references" ) "native_name" => array(12) ( "type" => string(6) "string" "column_name" => string(11) "native_name" "column_default" => NULL "data_type" => string(7) "varchar" "is_nullable" => bool FALSE "ordinal_position" => integer 7 "character_maximum_length" => string(2) "25" "collation_name" => string(15) "utf8_unicode_ci" "comment" => string(0) "" "extra" => string(0) "" "key" => string(0) "" "privileges" => string(31) "select,insert,update,references" ) "date_format" => array(12) ( "type" => string(6) "string" "column_name" => string(11) "date_format" "column_default" => NULL "data_type" => string(7) "varchar" "is_nullable" => bool FALSE "ordinal_position" => integer 8 "character_maximum_length" => string(2) "50" "collation_name" => string(15) "utf8_unicode_ci" "comment" => string(25) "Format wyświetlania daty" "extra" => string(0) "" "key" => string(0) "" "privileges" => string(31) "select,insert,update,references" ) "is_active" => array(13) ( "type" => string(3) "int" "min" => string(4) "-128" "max" => string(3) "127" "column_name" => string(9) "is_active" "column_default" => NULL "data_type" => string(7) "tinyint" "is_nullable" => bool FALSE "ordinal_position" => integer 9 "display" => string(1) "1" "comment" => string(0) "" "extra" => string(0) "" "key" => string(0) "" "privileges" => string(31) "select,insert,update,references" ) "is_default" => array(13) ( "type" => string(3) "int" "min" => string(1) "0" "max" => string(3) "255" "column_name" => string(10) "is_default" "column_default" => string(1) "0" "data_type" => string(16) "tinyint unsigned" "is_nullable" => bool FALSE "ordinal_position" => integer 10 "display" => string(1) "1" "comment" => string(0) "" "extra" => string(0) "" "key" => string(0) "" "privileges" => string(31) "select,insert,update,references" ) "currency_id" => array(13) ( "type" => string(3) "int" "min" => string(1) "0" "max" => string(10) "4294967295" "column_name" => string(11) "currency_id" "column_default" => NULL "data_type" => string(12) "int unsigned" "is_nullable" => bool FALSE "ordinal_position" => integer 11 "display" => string(2) "10" "comment" => string(0) "" "extra" => string(0) "" "key" => string(3) "MUL" "privileges" => string(31) "select,insert,update,references" ) "decimal_value" => array(13) ( "type" => string(3) "int" "min" => string(1) "0" "max" => string(10) "4294967295" "column_name" => string(13) "decimal_value" "column_default" => NULL "data_type" => string(12) "int unsigned" "is_nullable" => bool FALSE "ordinal_position" => integer 12 "display" => string(2) "10" "comment" => string(36) "Wartość dziesiętna identyfikatora" "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 => string(2) "id" protected _primary_key_value => string(1) "1" protected _table_names_plural => bool TRUE protected _reload_on_wakeup => bool TRUE protected _db => object Database_MySQL(6)
protected _name => string(7) "product" protected _action => string(4) "show" protected _title => string(18) "title.product.show" protected _main_content => object View(2){ protected _connection_id => string(40) "3f7283fcb98a6131df4fda96525c3946b1cd0e13" protected _identifier => string(1) "`" public last_query => string(360) "SELECT `meta`.`id` AS `meta:id`, `meta`.`product_id` AS `meta:product_id`, `meta`.`attributes_category_id` AS `meta:attributes_c …" protected _instance => string(7) "default" protected _connection => resource(mysql link) protected _config => array(6) ( "type" => string(5) "mysql" "connection" => array(2) ( "hostname" => string(9) "localhost" "database" => string(14) "admin_safedoor" ) "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(8) "language" }{ protected _file => string(78) "/home/admin/domains/safedoor.pl/public_html/application/views/product/show.php" protected _data => array(0) }
protected _auth => object Auth_ORM(2){ protected _session => object Session_Native(5)
protected _active_user => bool FALSE protected _breadcrumbs => object Breadcrumbs(3){ protected _name => string(7) "session" protected _lifetime => integer 0 protected _encrypted => bool FALSE 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(18) "klahdjkahdjklah218" public lifetime => integer 1209600 public session_type => string(6) "native" public session_key => string(9) "auth_user" public users => array(0) }
}{ protected items => array(1) ( 0 => object BreadCrumbs_Item(2)
protected _feedback_msg => object FeedbackMessage(2){ public uri => string(0) "" public title => string(15) "Strona główna" }
) protected separator => string(7) "»" protected view => string(17) "breadcrumbs_front" }{ protected _session_key => string(17) "feedback_messages" protected _messages => array(0) }
protected _has_default_title => bool TRUE public template => object View(2){ protected _file => string(74) "/home/admin/domains/safedoor.pl/public_html/application/views/template.php" protected _data => array(1) ( "is_full_width" => bool TRUE ) }
public auto_render => bool TRUE public request => object Request(21){ protected _requested_with => NULL protected _method => string(3) "GET" protected _protocol => string(8) "HTTP/2.0" protected _secure => bool TRUE protected _referrer => NULL protected _route => object Route(5)
public response => object Response(5){ protected _callback => NULL protected _uri => string(13) "p/<id>-<slug>" protected _regex => array(2) ( "id" => string(6) "[0-9]+" "slug" => string(15) "[0-9a-zA-Z\-_]+" ) protected _defaults => array(3) ( "directory" => string(3) "app" "controller" => string(7) "product" "action" => string(4) "show" ) protected _route_regex => string(48) "#^p/(?P<id>[0-9]+)-(?P<slug>[0-9a-zA-Z\-_]+)$#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/2.0" }{ }
protected _body => NULL protected _directory => string(3) "app" protected _controller => string(7) "product" protected _action => string(4) "show" protected _uri => string(13) "p/2330-fit-b3" protected _external => bool FALSE protected _params => array(2) ( "id" => string(4) "2330" "slug" => string(6) "fit-b3" ) protected _get => array(1) ( "/p/2330-fit-b3" => string(0) "" ) 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)
public _acl => object ACL(3){ }
protected _body => string(0) "" protected _cookies => array(0) protected _protocol => string(8) "HTTP/2.0" }{ protected _acl => object Config_Group(62)
}{ public app.disabled => string(1) "*" public page => string(1) "*" public page_base => string(1) "*" public desktop => string(5) "login" public customeraddress => string(5) "login" public order.index => string(5) "login" public order.show => string(5) "login" public order.review => string(5) "login" public order.download_list => string(5) "login" public order.download => string(5) "login" public order.show_in_email => string(1) "*" public customer.edit => string(5) "login" public auth.edit_password => string(5) "login" public auth.login => string(1) "*" public auth.login_inline => string(1) "*" public auth.logout => string(5) "login" public auth.register => string(1) "*" public auth.register_inline => string(1) "*" public auth.activate => string(1) "*" public auth.verify => string(1) "*" public auth.send_verification_email => string(5) "login" public auth.recover_password => string(1) "*" public wfmagintegrator => string(1) "*" public cart => string(1) "*" public clipboard => string(1) "*" public loyaltycart => string(5) "login" public cartbridge => string(1) "*" public cartorder => string(1) "*" public loyaltyorder => string(5) "login" public search => string(1) "*" public product => string(1) "*" public review.add => string(1) "*" public productlist.category => string(1) "*" public productlist.subcategory => string(1) "*" public productlist.news => string(1) "*" public productlist.bestsellers => string(1) "*" public productlist.promotion => string(1) "*" public productlist.producer => string(1) "*" public productlist.loyalty => string(1) "*" public cronmailing.send => string(1) "*" public newsletter => string(1) "*" public payu => string(1) "*" public paypal => string(1) "*" public dotpay => string(1) "*" public przelewy24 => string(1) "*" public banner => string(1) "*" public answer => string(1) "*" public question => string(1) "*" public survey => string(1) "*" public cronprofitshop => string(1) "*" public article => string(1) "*" public articlecategory => string(1) "*" public feedback => string(1) "*" public productlist => string(1) "*" public alloyrim => string(1) "*" public rim => string(1) "*" public tyre => string(1) "*" public tyre24search => string(1) "*" public stores => string(1) "*" public gallery => string(1) "*" public archive => string(1) "*" public auth => string(1) "*" }
protected _user => bool FALSE protected _required_role => string(1) "*" }123 // throw new HTTP_Exception_404('The requested URL :uri was not found on this server.', 124 // array(':uri' => $request->uri())); 125 } 126 127 $method = $class->getMethod('action_'.$action); 128 $method->invoke($controller); 129 130 // Execute the "after action" method 131 $class->getMethod('after')->invoke($controller); 132 } 133 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/2.0" protected _secure => bool TRUE protected _referrer => NULL protected _route => object Route(5)
{ protected _callback => NULL protected _uri => string(13) "p/<id>-<slug>" protected _regex => array(2) ( "id" => string(6) "[0-9]+" "slug" => string(15) "[0-9a-zA-Z\-_]+" ) protected _defaults => array(3) ( "directory" => string(3) "app" "controller" => string(7) "product" "action" => string(4) "show" ) protected _route_regex => string(48) "#^p/(?P<id>[0-9]+)-(?P<slug>[0-9a-zA-Z\-_]+)$#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/2.0" }{ }
protected _body => NULL protected _directory => string(3) "app" protected _controller => string(7) "product" protected _action => string(4) "show" protected _uri => string(13) "p/2330-fit-b3" protected _external => bool FALSE protected _params => array(2) ( "id" => string(4) "2330" "slug" => string(6) "fit-b3" ) protected _get => array(1) ( "/p/2330-fit-b3" => string(0) "" ) 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/2.0" protected _secure => bool TRUE protected _referrer => NULL protected _route => object Route(5)
{ protected _callback => NULL protected _uri => string(13) "p/<id>-<slug>" protected _regex => array(2) ( "id" => string(6) "[0-9]+" "slug" => string(15) "[0-9a-zA-Z\-_]+" ) protected _defaults => array(3) ( "directory" => string(3) "app" "controller" => string(7) "product" "action" => string(4) "show" ) protected _route_regex => string(48) "#^p/(?P<id>[0-9]+)-(?P<slug>[0-9a-zA-Z\-_]+)$#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/2.0" }{ }
protected _body => NULL protected _directory => string(3) "app" protected _controller => string(7) "product" protected _action => string(4) "show" protected _uri => string(13) "p/2330-fit-b3" protected _external => bool FALSE protected _params => array(2) ( "id" => string(4) "2330" "slug" => string(6) "fit-b3" ) protected _get => array(1) ( "/p/2330-fit-b3" => string(0) "" ) 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 [ 110 ] » Kohana_Request->execute()
105 /** 106 * Execute the main request. A source of the URI can be passed, eg: $_SERVER['PATH_INFO']. 107 * If no source is specified, the URI will be automatically detected. 108 */ 109 echo Request::factory() 110 ->execute() 111 ->send_headers() 112 ->body();