MODPATH/cache/classes/Kohana/Cache/File.php [ 151 ]
146 $lifetime = $data->fgets();
147
148 // If we're at the EOF at this point, corrupted!
149 if ($data->eof())
150 {
151 throw new Cache_Exception(__METHOD__.' corrupted cache file!');
152 }
153
154 $cache = '';
155
156 while ($data->eof() === FALSE)
-
APPPATH/classes/Model/Artigo.php [ 418 ] » Kohana_Cache_File->get(arguments)
0
string(13) "artigosbanner"
1
bool FALSE
413 //$apccache = Cache::instance('apc'); 414 $apccache = Cache::instance('file'); 415 } 416 // Cache::instance()->delete('artigosbanner'); 417 // If the cache key is available (with default value set to FALSE) 418 if (!($object = Cache::instance()->get('artigosbanner', FALSE))) { 419 $object = DB::query(Database::SELECT, 'select distinct artigos.id, artigos.titulo, artigos.subtitulo, artigos.descricao, artigos.preco_pvp, artigos.preco_so, artigos.preco_rev, imagem, encomendas.id as enc FROM encomendas 420 INNER JOIN artigos_encomendas ON artigos_encomendas.encomenda_id = encomendas.id 421 INNER JOIN artigos ON artigos.id = artigos_encomendas.artigo_id AND visibilidade = 1 422 INNER JOIN imagens ON imagens.artigo_id = artigos.id AND ordem = 1 423 WHERE artigos.'.VISIBILIDADE.' = 1
-
APPPATH/classes/Controller/Main.php [ 558 ] » Model_Artigo::getArtigosparaBanner()
553 HTTP::redirect('/'); 554 } 555 //conteudo 556 $this->template->conteudo = View::factory('lista_produtos')->bind('destaques', $destaques)->bind('produtos', $produtos); 557 //banner 558 $destaques = Model_Artigo::getArtigosparaBanner(); 559 //artigos 560 $produtos = Model_Artigo::getArtigosCategoria($id); 561 //script 562 $this->template->js = array(array('normal' => '/js/main.js')); 563 //categoria selecionada
-
SYSPATH/classes/Kohana/Controller.php [ 84 ] » Controller_Main->action_categoria()
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_Main(4)
{ public template => object View(2)
{ protected _file => string(80) "/home/famasaude/public_html/naturok.com/kohana-v3.3.1/naturok/views/template.php" protected _data => array(3) ( "header" => object View(2)
public auto_render => bool TRUE public request => object Request(19){ protected _file => string(78) "/home/famasaude/public_html/naturok.com/kohana-v3.3.1/naturok/views/header.php" protected _data => array(1) ( "categorias" => array(10) ( 0 => array(4) ( "id" => string(2) "43" "categoria" => string(23) "Suplementos Alimentares" "categoria_id" => string(1) "0" "children" => array(24) ( 0 => array(3) ( "id" => string(2) "78" "categoria" => string(14) "Ácidos Gordos" "categoria_id" => string(2) "43" ) 1 => array(3) ( "id" => string(3) "139" "categoria" => string(8) "Alergias" "categoria_id" => string(2) "43" ) 2 => array(3) ( "id" => string(2) "79" "categoria" => string(12) "Aminoácidos" "categoria_id" => string(2) "43" ) 3 => array(3) ( "id" => string(3) "152" "categoria" => string(21) "Cefaleias - Enxaqueca" "categoria_id" => string(2) "43" ) 4 => array(4) ( "id" => string(2) "82" "categoria" => string(25) "Concentração e Memória" "categoria_id" => string(2) "43" "children" => array(3) ( 0 => array(3) ( ... ) 1 => array(3) ( ... ) 2 => array(3) ( ... ) ) ) 5 => array(3) ( "id" => string(3) "168" "categoria" => string(22) "Desintoxicação Geral" "categoria_id" => string(2) "43" ) 6 => array(4) ( "id" => string(2) "87" "categoria" => string(13) "Emagrecimento" "categoria_id" => string(2) "43" "children" => array(5) ( 0 => array(3) ( ... ) 1 => array(3) ( ... ) 2 => array(3) ( ... ) 3 => array(3) ( ... ) 4 => array(3) ( ... ) ) ) 7 => array(4) ( "id" => string(3) "128" "categoria" => string(18) "Estimulante Sexual" "categoria_id" => string(2) "43" "children" => array(2) ( 0 => array(3) ( ... ) 1 => array(3) ( ... ) ) ) 8 => array(3) ( "id" => string(2) "91" "categoria" => string(19) "Fitoterapia Chinesa" "categoria_id" => string(2) "43" ) 9 => array(4) ( "id" => string(3) "119" "categoria" => string(26) "Linha Infantil - Pediatria" "categoria_id" => string(2) "43" "children" => array(5) ( 0 => array(3) ( ... ) 1 => array(3) ( ... ) 2 => array(3) ( ... ) 3 => array(3) ( ... ) 4 => array(3) ( ... ) ) ) 10 => array(4) ( "id" => string(2) "94" "categoria" => string(32) "Músculos Ossos e Articulações" "categoria_id" => string(2) "43" "children" => array(5) ( 0 => array(3) ( ... ) 1 => array(3) ( ... ) 2 => array(3) ( ... ) 3 => array(3) ( ... ) 4 => array(3) ( ... ) ) ) 11 => array(4) ( "id" => string(3) "137" "categoria" => string(20) "Orgãos dos Sentidos" "categoria_id" => string(2) "43" "children" => array(2) ( 0 => array(3) ( ... ) 1 => array(3) ( ... ) ) ) 12 => array(3) ( "id" => string(3) "100" "categoria" => string(19) "Pele Cabelo e Unhas" "categoria_id" => string(2) "43" ) 13 => array(3) ( "id" => string(3) "171" "categoria" => string(27) "Probióticos e Simbióticos" "categoria_id" => string(2) "43" ) 19 => array(4) ( "id" => string(3) "101" "categoria" => string(15) "Saúde Feminina" "categoria_id" => string(2) "43" "children" => array(1) ( 1 => array(3) ( ... ) ) ) 20 => array(4) ( "id" => string(3) "102" "categoria" => string(16) "Saúde Masculina" "categoria_id" => string(2) "43" "children" => array(1) ( 0 => array(3) ( ... ) ) ) 21 => array(4) ( "id" => string(2) "84" "categoria" => string(31) "Sistema CardioVascular - Sangue" "categoria_id" => string(2) "43" "children" => array(5) ( 0 => array(3) ( ... ) 1 => array(3) ( ... ) 2 => array(3) ( ... ) 3 => array(3) ( ... ) 4 => array(3) ( ... ) ) ) 22 => array(4) ( "id" => string(3) "133" "categoria" => string(17) "Sistema Digestivo" "categoria_id" => string(2) "43" "children" => array(4) ( 0 => array(3) ( ... ) 1 => array(3) ( ... ) 2 => array(3) ( ... ) 3 => array(3) ( ... ) ) ) 23 => array(3) ( "id" => string(3) "149" "categoria" => string(29) "Sistema Endócrino e Hormonal" "categoria_id" => string(2) "43" ) 24 => array(4) ( "id" => string(3) "103" "categoria" => string(19) "Sistema Imunitário" "categoria_id" => string(2) "43" "children" => array(2) ( 0 => array(3) ( ... ) 2 => array(3) ( ... ) ) ) 25 => array(4) ( "id" => string(3) "131" "categoria" => string(15) "Sistema Nervoso" "categoria_id" => string(2) "43" "children" => array(4) ( 0 => array(3) ( ... ) 1 => array(3) ( ... ) 2 => array(3) ( ... ) 3 => array(3) ( ... ) ) ) 26 => array(4) ( "id" => string(3) "104" "categoria" => string(21) "Sistema Respiratório" "categoria_id" => string(2) "43" "children" => array(5) ( 0 => array(3) ( ... ) 1 => array(3) ( ... ) 2 => array(3) ( ... ) 3 => array(3) ( ... ) 4 => array(3) ( ... ) ) ) 27 => array(4) ( "id" => string(3) "107" "categoria" => string(25) "Sistema Urinário - Renal" "categoria_id" => string(2) "43" "children" => array(3) ( 0 => array(3) ( ... ) 1 => array(3) ( ... ) 2 => array(3) ( ... ) ) ) 28 => array(4) ( "id" => string(3) "136" "categoria" => string(20) "Vitaminas e Minerais" "categoria_id" => string(2) "43" "children" => array(6) ( 0 => array(3) ( ... ) 1 => array(3) ( ... ) 2 => array(3) ( ... ) 3 => array(3) ( ... ) 4 => array(3) ( ... ) 5 => array(3) ( ... ) ) ) ) ) 1 => array(4) ( "id" => string(2) "60" "categoria" => string(18) "Plantas Medicinais" "categoria_id" => string(1) "0" "children" => array(5) ( 0 => array(3) ( "id" => string(3) "172" "categoria" => string(14) "Chá Emagrecer" "categoria_id" => string(2) "60" ) 1 => array(3) ( "id" => string(2) "72" "categoria" => string(8) "Diversos" "categoria_id" => string(2) "60" ) 2 => array(3) ( "id" => string(2) "73" "categoria" => string(9) "Infusões" "categoria_id" => string(2) "60" ) 4 => array(3) ( "id" => string(2) "75" "categoria" => string(26) "Plantas Medicinais Simples" "categoria_id" => string(2) "60" ) 5 => array(3) ( "id" => string(2) "77" "categoria" => string(7) "Tisanas" "categoria_id" => string(2) "60" ) ) ) 2 => array(4) ( "id" => string(2) "36" "categoria" => string(10) "Homeopatia" "categoria_id" => string(1) "0" "children" => array(6) ( 0 => array(3) ( "id" => string(2) "34" "categoria" => string(12) "Dr. Reckeweg" "categoria_id" => string(2) "36" ) 1 => array(3) ( "id" => string(2) "56" "categoria" => string(4) "Heel" "categoria_id" => string(2) "36" ) 2 => array(4) ( "id" => string(2) "64" "categoria" => string(22) "Homeopatia Pediátrica" "categoria_id" => string(2) "36" "children" => array(0) ) 3 => array(3) ( "id" => string(2) "57" "categoria" => string(17) "Sais de Schussler" "categoria_id" => string(2) "36" ) 4 => array(3) ( "id" => string(2) "32" "categoria" => string(5) "Sanum" "categoria_id" => string(2) "36" ) 8 => array(3) ( "id" => string(3) "111" "categoria" => string(21) "Vacinas Homeopáticas" "categoria_id" => string(2) "36" ) ) ) 3 => array(4) ( "id" => string(2) "51" "categoria" => string(7) "Florais" "categoria_id" => string(1) "0" "children" => array(1) ( 0 => array(3) ( "id" => string(3) "112" "categoria" => string(15) "Florais de Bach" "categoria_id" => string(2) "51" ) ) ) 4 => array(3) ( "id" => string(2) "63" "categoria" => string(19) "Dispositivo Médico" "categoria_id" => string(1) "0" ) 5 => array(4) ( "id" => string(2) "50" "categoria" => string(8) "Desporto" "categoria_id" => string(1) "0" "children" => array(4) ( 1 => array(3) ( "id" => string(3) "114" "categoria" => string(13) "Electrólitos" "categoria_id" => string(2) "50" ) 2 => array(3) ( "id" => string(2) "42" "categoria" => string(12) "Energéticos" "categoria_id" => string(2) "50" ) 3 => array(3) ( "id" => string(3) "115" "categoria" => string(9) "Proteicos" "categoria_id" => string(2) "50" ) 4 => array(3) ( "id" => string(3) "116" "categoria" => string(19) "Vários em Desporto" "categoria_id" => string(2) "50" ) ) ) 6 => array(4) ( "id" => string(2) "70" "categoria" => string(18) "Cosmética Natural" "categoria_id" => string(1) "0" "children" => array(4) ( 0 => array(4) ( "id" => string(2) "33" "categoria" => string(5) "Corpo" "categoria_id" => string(2) "70" "children" => array(1) ( 0 => array(3) ( ... ) ) ) 1 => array(3) ( "id" => string(2) "48" "categoria" => string(18) "Cuidados Capilares" "categoria_id" => string(2) "70" ) 2 => array(4) ( "id" => string(2) "49" "categoria" => string(15) "Dermocosmética" "categoria_id" => string(2) "70" "children" => array(1) ( 0 => array(3) ( ... ) ) ) 3 => array(3) ( "id" => string(2) "67" "categoria" => string(5) "Rosto" "categoria_id" => string(2) "70" ) ) ) 7 => array(4) ( "id" => string(2) "69" "categoria" => string(12) "Aromaterapia" "categoria_id" => string(1) "0" "children" => array(7) ( 1 => array(3) ( "id" => string(2) "46" "categoria" => string(18) "Banhos Aromáticos" "categoria_id" => string(2) "69" ) 2 => array(3) ( "id" => string(2) "66" "categoria" => string(6) "Cremes" "categoria_id" => string(2) "69" ) 4 => array(3) ( "id" => string(2) "54" "categoria" => string(9) "Difusores" "categoria_id" => string(2) "69" ) 5 => array(3) ( "id" => string(2) "62" "categoria" => string(9) "Gel Duche" "categoria_id" => string(2) "69" ) 6 => array(3) ( "id" => string(2) "40" "categoria" => string(18) "Óleos de Massagem" "categoria_id" => string(2) "69" ) 7 => array(3) ( "id" => string(2) "55" "categoria" => string(17) "Óleos Essenciais" "categoria_id" => string(2) "69" ) 8 => array(3) ( "id" => string(2) "41" "categoria" => string(15) "Óleos Vegetais" "categoria_id" => string(2) "69" ) ) ) 8 => array(4) ( "id" => string(2) "68" "categoria" => string(13) "Alimentação" "categoria_id" => string(1) "0" "children" => array(7) ( 0 => array(3) ( "id" => string(2) "45" "categoria" => string(7) "Bebidas" "categoria_id" => string(2) "68" ) 1 => array(3) ( "id" => string(2) "44" "categoria" => string(10) "Biológica" "categoria_id" => string(2) "68" ) 2 => array(3) ( "id" => string(2) "35" "categoria" => string(5) "Dieta" "categoria_id" => string(2) "68" ) 3 => array(3) ( "id" => string(2) "37" "categoria" => string(11) "Especiarias" "categoria_id" => string(2) "68" ) 4 => array(3) ( "id" => string(2) "38" "categoria" => string(9) "Saudável" "categoria_id" => string(2) "68" ) 6 => array(3) ( "id" => string(2) "53" "categoria" => string(11) "Sem Glúten" "categoria_id" => string(2) "68" ) 7 => array(3) ( "id" => string(2) "39" "categoria" => string(14) "Superalimentos" "categoria_id" => string(2) "68" ) ) ) 9 => array(3) ( "id" => string(3) "143" "categoria" => string(6) "OFFERS" "categoria_id" => string(1) "0" ) ) ) }
"leftbar" => object View(2){ protected _file => string(79) "/home/famasaude/public_html/naturok.com/kohana-v3.3.1/naturok/views/leftbar.php" protected _data => array(6) ( "banner1" => string(136) "<a href="https://naturok.com/categoria/124-Gripes%20e%20Constipa%C3%A7%C3%B5es"><img src="/banners/1506383749-previna-a-gripe.gi …" "banner2" => string(149) "<a href="https://www.naturok.com/produto/2996-%C3%B3leo-de-coco-desodorizado-bio-1000ml"><img src="/banners/1483644053-OLEO-COCO …" "banner3" => string(126) "<a href="https://www.naturok.com/categoria/83-Controlo%20de%20Peso"><img src="/banners/1485461931-perca-peso-j-_256.gif"/></a>" "banner4" => string(101) "<a href="https://naturok.com/campanha/37"><img src="/banners/1487093512-collmar-rafael_256.gif"/></a>" "banner5" => string(111) "<a href="https://naturok.com/campanha/38"><img src="/banners/1505519314-iNFORMACAO-CONSUMIDOR-BRASIL.jpg"/></a>" "categorias" => object Database_MySQL_Result(7)
"conteudo" => object View(2){ protected _internal_row => integer 0 protected _query => string(414) "SELECT distinct categorias.id, categorias.categoria, count(artigos_categorias.artigo_id) FROM categorias, artigos_categorias, ar …" protected _result => resource(mysql result) protected _total_rows => integer 8 protected _current_row => integer 0 protected _as_object => bool FALSE protected _object_params => NULL }
) }{ protected _file => string(86) "/home/famasaude/public_html/naturok.com/kohana-v3.3.1/naturok/views/lista_produtos.php" protected _data => array(2) ( "destaques" => NULL "produtos" => NULL ) }
) }{ 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 _filters => array(0) protected _uri => string(14) "categoria/<id>" protected _regex => array(1) ( "id" => string(9) "[^/,;?]++" ) protected _defaults => array(2) ( "controller" => string(4) "main" "action" => string(9) "categoria" ) protected _route_regex => string(33) "#^categoria/(?P<id>[^/,;?]++)$#uD" }
protected _routes => array(0) protected _header => object HTTP_Header(0){ }
protected _body => NULL protected _directory => string(0) "" protected _controller => string(4) "Main" protected _action => string(9) "categoria" protected _uri => string(54) "categoria/137-Org%EF%BF%BD%EF%BF%BDos%20dos%20Sentidos" protected _external => bool FALSE protected _params => array(1) ( "id" => string(44) "137-Org%EF%BF%BD%EF%BF%BDos%20dos%20Sentidos" ) protected _get => array(1) ( "/categoria/137-Org��os_dos_Sentidos" => 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/2.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/2.0" protected _secure => bool TRUE protected _referrer => NULL protected _route => object Route(5)
{ protected _filters => array(0) protected _uri => string(14) "categoria/<id>" protected _regex => array(1) ( "id" => string(9) "[^/,;?]++" ) protected _defaults => array(2) ( "controller" => string(4) "main" "action" => string(9) "categoria" ) protected _route_regex => string(33) "#^categoria/(?P<id>[^/,;?]++)$#uD" }
protected _routes => array(0) protected _header => object HTTP_Header(0){ }
protected _body => NULL protected _directory => string(0) "" protected _controller => string(4) "Main" protected _action => string(9) "categoria" protected _uri => string(54) "categoria/137-Org%EF%BF%BD%EF%BF%BDos%20dos%20Sentidos" protected _external => bool FALSE protected _params => array(1) ( "id" => string(44) "137-Org%EF%BF%BD%EF%BF%BDos%20dos%20Sentidos" ) protected _get => array(1) ( "/categoria/137-Org��os_dos_Sentidos" => 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/2.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/2.0" protected _secure => bool TRUE protected _referrer => NULL protected _route => object Route(5)
{ protected _filters => array(0) protected _uri => string(14) "categoria/<id>" protected _regex => array(1) ( "id" => string(9) "[^/,;?]++" ) protected _defaults => array(2) ( "controller" => string(4) "main" "action" => string(9) "categoria" ) protected _route_regex => string(33) "#^categoria/(?P<id>[^/,;?]++)$#uD" }
protected _routes => array(0) protected _header => object HTTP_Header(0){ }
protected _body => NULL protected _directory => string(0) "" protected _controller => string(4) "Main" protected _action => string(9) "categoria" protected _uri => string(54) "categoria/137-Org%EF%BF%BD%EF%BF%BDos%20dos%20Sentidos" protected _external => bool FALSE protected _params => array(1) ( "id" => string(44) "137-Org%EF%BF%BD%EF%BF%BDos%20dos%20Sentidos" ) protected _get => array(1) ( "/categoria/137-Org��os_dos_Sentidos" => 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) }
}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 [ 126 ] » Kohana_Request->execute()
121 /** 122 * Execute the main request. A source of the URI can be passed, eg: $_SERVER['PATH_INFO']. 123 * If no source is specified, the URI will be automatically detected. 124 */ 125 echo Request::factory(TRUE, array(), FALSE) 126 ->execute() 127 ->send_headers(TRUE) 128 ->body(); 129 }