APPPATH/classes/Controller/Website.php [ 546 ]
541
542 // Obter dados completos do produto (config + i18n)
543 $produto = $this->get_product_data($product_key);
544
545 if ($produto === false) {
546 throw new HTTP_Exception_404('Produto não encontrado');
547 }
548
549 // Configurar SEO usando traduções
550 $this->set_title($this->__('products.' . $product_key . '.seo_title'));
551 $this->set_description($this->__('products.' . $product_key . '.seo_description'));
-
SYSPATH/classes/Kohana/Controller.php [ 84 ] » Controller_Website->action_product()
79 [':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 [ 94 ] » ReflectionMethod->invoke(arguments)
0object Controller_Website(7)
{ protected current_language => string(2) "br" protected supported_languages => array(3) ( 0 => string(2) "br" 1 => string(2) "en" 2 => string(2) "es" ) public template => object View(2){ protected _file => string(44) "/var/www/html/application/views/template.php" protected _data => array(2) ( "current_language" => string(2) "br" "supported_languages" => array(3) ( 0 => string(2) "br" 1 => string(2) "en" 2 => string(2) "es" ) ) }protected default_data => array(3) ( "titulo" => string(33) "SuperNova - Máquinas Industriais" "descricao" => string(84) "Líder em tecnologia industrial, oferecendo máquinas de alta qualidade e precisão." "website_config" => object Config_Group(7){ public brand => array(4) ( "name" => string(9) "SuperNova" "full_name" => string(13) "YYC SuperNova" "tagline" => string(40) "Tecnologia Avançada em Corte Industrial" "description" => string(78) "Líder em soluções de corte automático para indústria têxtil e manufatura" ) public seo => array(5) ( "home" => array(3) ( "title" => string(79) "Máquina de Corte e Enfestadeira Automática | SuperNova - Máquinas Importadas" "description" => string(164) "Mesas de corte e enfestadeiras importadas para confecções. Alta precisão, economia de tecido e suporte técnico especializado. Pe …" "keywords" => string(175) "máquina de corte de tecido, enfestadeira automática, mesa de enfesto industrial, mesa insuflada para corte, máquinas para confec …" ) "products" => array(3) ( "title" => string(60) "Máquinas de Corte e Enfestadeiras Profissionais | SuperNova" "description" => string(165) "Conheça nossa linha completa de máquinas de corte e enfestadeiras automáticas. Soluções importadas para aumentar produtividade e …" "keywords" => string(140) "produtos SuperNova, máquinas corte tecido, enfestadeira semiautomática, mesa corte importada confecção, equipamentos industriais …" ) "privacy_policy" => array(3) ( "title" => string(36) "Política de Privacidade - SuperNova" "description" => string(104) "Política de Privacidade da SuperNova - Como coletamos, usamos e protegemos suas informações pessoais." "keywords" => string(56) "política privacidade, proteção dados, SuperNova, LGPD" ) "terms_of_use" => array(3) ( "title" => string(25) "Termos de Uso - SuperNova" "description" => string(88) "Termos de Uso da SuperNova - Condições para utilização de nosso website e serviços." "keywords" => string(43) "termos uso, condições, SuperNova, website" ) "contact" => array(3) ( "title" => string(23) "Contato - YYC Máquinas" "description" => string(93) "Entre em contato conosco para mais informações sobre nossas máquinas de corte automático." "keywords" => string(60) "contato, YYC máquinas, SuperNova, orçamento, informações" ) ) public contact => array(8) ( "company" => string(42) "YYC SuperNova Indústria e Comércio Ltda." "email" => string(30) "vendas@supernovacostura.com.br" "email_support" => string(31) "suporte@supernovacostura.com.br" "phone" => string(15) "(11) 97336-2107" "phone_formatted" => string(17) "+55 11 97336-2107" "whatsapp" => string(15) "(11) 97336-2107" "whatsapp_formatted" => string(13) "5511973362107" "address" => array(4) ( "street" => string(33) "Rua da Bosque, 1117 - Barra Funda" "city" => string(15) "São Paulo - SP" "zip" => string(9) "01234-567" "country" => string(6) "Brasil" ) ) public produtos_page => array(1) ( "produtos" => array(2) ( 0 => array(6) ( "id" => string(10) "mesa-corte" "nome" => string(29) "Máquina de Corte Automática" "descricao" => string(75) "Equipamentos de alta precisão para corte automático de múltiplas camadas" "imagem" => string(37) "assets/images/produtos/mesa-corte.jpg" "link" => string(14) "maquinas-corte" "caracteristicas" => array(3) ( 0 => string(31) "Área de corte: 2000mm x 2500mm" 1 => string(18) "Precisão: ±0.1mm" 2 => string(20) "Velocidade: 100m/min" ) ) 1 => array(6) ( "id" => string(12) "enfestadeira" "nome" => string(24) "Enfestadeira Automática" "descricao" => string(63) "Sistemas de enfesto automático para otimização da produção" "imagem" => string(39) "assets/images/produtos/enfestadeira.jpg" "link" => string(12) "enfestadeira" "caracteristicas" => array(3) ( 0 => string(20) "Largura: até 2000mm" 1 => string(19) "Velocidade: 50m/min" 2 => string(31) "Controle automático de tensão" ) ) ) ) public social => array(2) ( "instagram" => string(43) "https://www.instagram.com/supernovacostura/" "youtube" => string(45) "https://www.youtube.com/@supernovacostura2082" ) public youtube_api => array(5) ( "api_key" => string(39) "AIzaSyCRV1DsS0ZILmcF4Pzak27Ng8N0y1RxUSk" "channel_id" => string(20) "supernovacostura2082" "max_results" => integer 12 "order" => string(4) "date" "cache_duration" => integer 3600 ) public technical => array(3) ( "analytics_id" => string(12) "GA-XXXXXXXXX" "facebook_pixel" => string(9) "XXXXXXXXX" "google_tag_manager" => string(11) "GTM-XXXXXXX" ) }) 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(30) "(<lang>/)produto/<product_key>" protected _regex => array(2) ( "lang" => string(10) "(br|en|es)" "product_key" => string(11) "[a-z0-9_-]+" ) protected _defaults => array(3) ( "controller" => string(7) "website" "action" => string(7) "product" "lang" => string(2) "br" ) protected _route_regex => string(68) "#^(?:(?P<lang>(br|en|es))/)?produto/(?P<product_key>[a-z0-9_-]+)$#uD" }protected _routes => array(0) protected _header => object HTTP_Header(0){ }protected _body => NULL protected _directory => string(0) "" protected _controller => string(7) "Website" protected _action => string(7) "product" protected _uri => string(29) "produto/bordadeira-industrial" protected _external => bool FALSE protected _params => array(2) ( "lang" => string(2) "br" "product_key" => string(21) "bordadeira-industrial" ) 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.1" }89 90 // Create a new instance of the controller 91 $controller = $class->newInstance($request, $response); 92 93 // Run the controller's execute() method 94 $response = $class->getMethod('execute')->invoke($controller); 95 96 if ( ! $response instanceof Response) 97 { 98 // Controller failed to return a Response. 99 throw new Kohana_Exception('Controller failed to return a Response'); -
SYSPATH/classes/Kohana/Request/Client.php [ 114 ] » Kohana_Request_Client_Internal->execute_request(arguments)
0object 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(30) "(<lang>/)produto/<product_key>" protected _regex => array(2) ( "lang" => string(10) "(br|en|es)" "product_key" => string(11) "[a-z0-9_-]+" ) protected _defaults => array(3) ( "controller" => string(7) "website" "action" => string(7) "product" "lang" => string(2) "br" ) protected _route_regex => string(68) "#^(?:(?P<lang>(br|en|es))/)?produto/(?P<product_key>[a-z0-9_-]+)$#uD" }protected _routes => array(0) protected _header => object HTTP_Header(0){ }protected _body => NULL protected _directory => string(0) "" protected _controller => string(7) "Website" protected _action => string(7) "product" protected _uri => string(29) "produto/bordadeira-industrial" protected _external => bool FALSE protected _params => array(2) ( "lang" => string(2) "br" "product_key" => string(21) "bordadeira-industrial" ) 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) }}1object 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(['_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 [ 1000 ] » Kohana_Request_Client->execute(arguments)
0object 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(30) "(<lang>/)produto/<product_key>" protected _regex => array(2) ( "lang" => string(10) "(br|en|es)" "product_key" => string(11) "[a-z0-9_-]+" ) protected _defaults => array(3) ( "controller" => string(7) "website" "action" => string(7) "product" "lang" => string(2) "br" ) protected _route_regex => string(68) "#^(?:(?P<lang>(br|en|es))/)?produto/(?P<product_key>[a-z0-9_-]+)$#uD" }protected _routes => array(0) protected _header => object HTTP_Header(0){ }protected _body => NULL protected _directory => string(0) "" protected _controller => string(7) "Website" protected _action => string(7) "product" protected _uri => string(29) "produto/bordadeira-industrial" protected _external => bool FALSE protected _params => array(2) ( "lang" => string(2) "br" "product_key" => string(21) "bordadeira-industrial" ) 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) }}995 throw new Request_Exception('Unable to execute :uri without a Kohana_Request_Client', [ 996 ':uri' => $this->_uri, 997 ]); 998 } 999 1000 return $this->_client->execute($this); 1001 } 1002 1003 /** 1004 * Returns whether this request is the initial request Kohana received. 1005 * Can be used to test for sub requests. -
DOCROOT/public/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, [], FALSE) 118 ->execute() 119 ->send_headers(TRUE) 120 ->body(); 121 }