/var/www/primadoma-modules/database/classes/Kohana/Database/PDO.php [ 157 ]
152 // This benchmark is worthless
153 Profiler::delete($benchmark);
154 }
155
156 // Convert the exception in a database exception
157 throw new Database_Exception(':error [ :query ]',
158 [
159 ':error' => $e->getMessage(),
160 ':query' => $sql
161 ],
162 $e->getCode());
-
/var/www/primadoma-modules/database/classes/Kohana/Database/Query.php [ 251 ] » Kohana_Database_PDO->query(arguments)
0
integer 1
1
string(47) "SELECT * FROM staticpages WHERE url = 'kontakt'"
2
bool FALSE
3
array(0)
246 return new Database_Result_Cached($result, $sql, $as_object, $object_params); 247 } 248 } 249 250 // Execute the query 251 $result = $db->query($this->_type, $sql, $as_object, $object_params); 252 253 if (isset($cache_key) AND $this->_lifetime > 0) 254 { 255 // Cache the result array 256 Kohana::cache($cache_key, $result->as_array(), $this->_lifetime);
-
APPPATH/classes/Model/Staticpages.php [ 18 ] » Kohana_Database_Query->execute()
13 14 $ret = array(); 15 16 if(!empty($page_url)) 17 { 18 $res = DB::Select()->from("staticpages")->where("url","=",$page_url)->execute()->current(); 19 if(!empty($res)) 20 { 21 $ret = $res; 22 } 23 }
-
APPPATH/classes/Controller/Staticpages.php [ 17 ] » Model_Staticpages::load(arguments)
0
string(7) "kontakt"
12 13 $page_url = $this->request->param("page_url"); 14 15 if(!empty($page_url)) 16 { 17 $page_data = Model_Staticpages::load($page_url); 18 19 if(!empty($page_data)) 20 { 21 $this->template->_slot_view = new View("_staticpages/staticpage"); 22 $this->template->_slot_view->data = $page_data;
-
SYSPATH/classes/Kohana/Controller.php [ 84 ] » Controller_Staticpages->action_staticpage()
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)
0
object Controller_Staticpages(5)
{ public template => object View(2)
{ protected _file => string(55) "/var/www/fachmani.cz.www/application/views/template.php" protected _data => array(10) ( "_header" => object View(2)
public auto_render => bool TRUE public request => object Request(19){ protected _file => string(60) "/var/www/fachmani.cz.www/application/views/static/header.php" protected _data => array(18) ( "_page_title" => string(11) "Fachmani.cz" "_page_keywords" => NULL "_page_descript" => string(175) "Rekonstrukce domu od A do Z. Fachmani Pepa a Karel s šikovnou partou řemeslníků a špetkou humoru vám poradí, jak na to. Rekonstr …" "_page_image" => string(72) "https://fachmani.primadoma.cz/theme/assets/img/og-image-fachmani-min.jpg" "_og_page_type" => NULL "_og_site_name" => string(11) "Fachmani.cz" "fb_app_id" => string(16) "2259871874251009" "_css" => NULL "_meta" => string(0) "" "page_title" => string(0) "" "_canonical_url" => NULL "_follow" => NULL "_json_ld" => NULL "_data_layer" => NULL "_next_link" => NULL "_prev_link" => NULL "header_leaderboard" => bool TRUE "_seznam_reklama" => bool FALSE ) }
"_navigation" => object View(2){ protected _file => string(64) "/var/www/fachmani.cz.www/application/views/static/navigation.php" protected _data => array(5) ( "_form_action" => string(0) "" "_form_query" => string(0) "" "_not_root" => bool FALSE "active" => NULL "categories" => array(1) ( 7285 => array(15) ( "id" => string(2) "57" "object_id" => string(4) "7285" "parent_object_id" => string(1) "0" "category_name" => string(21) "Stavba a rekonstrukce" "category_description" => NULL "category_seo_title" => string(21) "Stavba a rekonstrukce" "category_seo_description" => string(21) "Stavba a rekonstrukce" "category_seo_keywords" => string(21) "Stavba a rekonstrukce" "category_url" => string(21) "stavba-a-rekonstrukce" "article_object_id" => NULL "active" => string(1) "Y" "show_in_menu" => string(1) "Y" "catorder" => string(1) "0" "url" => string(37) "/kategorie-7285-stavba-a-rekonstrukce" "children" => array(17) ( 7286 => array(14) ( "id" => string(2) "58" "object_id" => string(4) "7286" "parent_object_id" => string(4) "7285" "category_name" => string(6) "Stavba" "category_description" => NULL "category_seo_title" => string(6) "Stavba" "category_seo_description" => string(6) "Stavba" "category_seo_keywords" => string(6) "Stavba" "category_url" => string(6) "stavba" "article_object_id" => NULL "active" => string(1) "Y" "show_in_menu" => string(1) "Y" "catorder" => string(1) "0" "url" => string(22) "/kategorie-7286-stavba" ) 7287 => array(14) ( "id" => string(2) "59" "object_id" => string(4) "7287" "parent_object_id" => string(4) "7285" "category_name" => string(12) "Rekonstrukce" "category_description" => NULL "category_seo_title" => string(12) "Rekonstrukce" "category_seo_description" => string(12) "Rekonstrukce" "category_seo_keywords" => string(12) "Rekonstrukce" "category_url" => string(12) "rekonstrukce" "article_object_id" => NULL "active" => string(1) "Y" "show_in_menu" => string(1) "Y" "catorder" => string(1) "0" "url" => string(28) "/kategorie-7287-rekonstrukce" ) 7288 => array(14) ( "id" => string(2) "60" "object_id" => string(4) "7288" "parent_object_id" => string(4) "7285" "category_name" => string(19) "Stavební nářadí" "category_description" => NULL "category_seo_title" => string(19) "Stavební nářadí" "category_seo_description" => string(19) "Stavební nářadí" "category_seo_keywords" => string(19) "Stavební nářadí" "category_url" => string(15) "stavebni-naradi" "article_object_id" => NULL "active" => string(1) "Y" "show_in_menu" => string(1) "Y" "catorder" => string(1) "0" "url" => string(31) "/kategorie-7288-stavebni-naradi" ) 7289 => array(14) ( "id" => string(2) "61" "object_id" => string(4) "7289" "parent_object_id" => string(4) "7285" "category_name" => string(20) "Stavební materiály" "category_description" => NULL "category_seo_title" => string(20) "Stavební materiály" "category_seo_description" => string(20) "Stavební materiály" "category_seo_keywords" => string(20) "Stavební materiály" "category_url" => string(18) "stavebni-materialy" "article_object_id" => NULL "active" => string(1) "Y" "show_in_menu" => string(1) "Y" "catorder" => string(1) "0" "url" => string(34) "/kategorie-7289-stavebni-materialy" ) 7290 => array(14) ( "id" => string(2) "62" "object_id" => string(4) "7290" "parent_object_id" => string(4) "7285" "category_name" => string(12) "Sádrokarton" "category_description" => NULL "category_seo_title" => string(12) "Sádrokarton" "category_seo_description" => string(12) "Sádrokarton" "category_seo_keywords" => string(12) "Sádrokarton" "category_url" => string(11) "sadrokarton" "article_object_id" => NULL "active" => string(1) "Y" "show_in_menu" => string(1) "Y" "catorder" => string(1) "0" "url" => string(27) "/kategorie-7290-sadrokarton" ) 7291 => array(14) ( "id" => string(2) "63" "object_id" => string(4) "7291" "parent_object_id" => string(4) "7285" "category_name" => string(13) "Okna a dveře" "category_description" => NULL "category_seo_title" => string(13) "Okna a dveře" "category_seo_description" => string(13) "Okna a dveře" "category_seo_keywords" => string(13) "Okna a dveře" "category_url" => string(12) "okna-a-dvere" "article_object_id" => NULL "active" => string(1) "Y" "show_in_menu" => string(1) "Y" "catorder" => string(1) "0" "url" => string(28) "/kategorie-7291-okna-a-dvere" ) 7292 => array(14) ( "id" => string(2) "64" "object_id" => string(4) "7292" "parent_object_id" => string(4) "7285" "category_name" => string(25) "Zdění, omítky, obklady" "category_description" => NULL "category_seo_title" => string(25) "Zdění, omítky, obklady" "category_seo_description" => string(25) "Zdění, omítky, obklady" "category_seo_keywords" => string(25) "Zdění, omítky, obklady" "category_url" => string(20) "zdeni-omitky-obklady" "article_object_id" => NULL "active" => string(1) "Y" "show_in_menu" => string(1) "Y" "catorder" => string(1) "0" "url" => string(36) "/kategorie-7292-zdeni-omitky-obklady" ) 7293 => array(14) ( "id" => string(2) "65" "object_id" => string(4) "7293" "parent_object_id" => string(4) "7285" "category_name" => string(7) "Podlahy" "category_description" => NULL "category_seo_title" => string(7) "Podlahy" "category_seo_description" => string(7) "Podlahy" "category_seo_keywords" => string(7) "Podlahy" "category_url" => string(7) "podlahy" "article_object_id" => NULL "active" => string(1) "Y" "show_in_menu" => string(1) "Y" "catorder" => string(1) "0" "url" => string(23) "/kategorie-7293-podlahy" ) 7294 => array(14) ( "id" => string(2) "66" "object_id" => string(4) "7294" "parent_object_id" => string(4) "7285" "category_name" => string(18) "Střechy a komíny" "category_description" => NULL "category_seo_title" => string(18) "Střechy a komíny" "category_seo_description" => string(18) "Střechy a komíny" "category_seo_keywords" => string(18) "Střechy a komíny" "category_url" => string(16) "strechy-a-kominy" "article_object_id" => NULL "active" => string(1) "Y" "show_in_menu" => string(1) "Y" "catorder" => string(1) "0" "url" => string(32) "/kategorie-7294-strechy-a-kominy" ) 7295 => array(14) ( "id" => string(2) "67" "object_id" => string(4) "7295" "parent_object_id" => string(4) "7285" "category_name" => string(20) "Balkony, schodiště" "category_description" => NULL "category_seo_title" => string(20) "Balkony, schodiště" "category_seo_description" => string(20) "Balkony, schodiště" "category_seo_keywords" => string(20) "Balkony, schodiště" "category_url" => string(17) "balkony-schodiste" "article_object_id" => NULL "active" => string(1) "Y" "show_in_menu" => string(1) "Y" "catorder" => string(1) "0" "url" => string(33) "/kategorie-7295-balkony-schodiste" ) 7296 => array(14) ( "id" => string(2) "68" "object_id" => string(4) "7296" "parent_object_id" => string(4) "7285" "category_name" => string(29) "Zateplení, fasády a izolace" "category_description" => NULL "category_seo_title" => string(29) "Zateplení, fasády a izolace" "category_seo_description" => string(29) "Zateplení, fasády a izolace" "category_seo_keywords" => string(29) "Zateplení, fasády a izolace" "category_url" => string(26) "zatepleni-fasady-a-izolace" "article_object_id" => NULL "active" => string(1) "Y" "show_in_menu" => string(1) "Y" "catorder" => string(1) "0" "url" => string(42) "/kategorie-7296-zatepleni-fasady-a-izolace" ) 7297 => array(14) ( "id" => string(2) "69" "object_id" => string(4) "7297" "parent_object_id" => string(4) "7285" "category_name" => string(21) "Energie, rozvody, TZB" "category_description" => NULL "category_seo_title" => string(21) "Energie, rozvody, TZB" "category_seo_description" => string(21) "Energie, rozvody, TZB" "category_seo_keywords" => string(21) "Energie, rozvody, TZB" "category_url" => string(19) "energie-rozvody-tzb" "article_object_id" => NULL "active" => string(1) "Y" "show_in_menu" => string(1) "Y" "catorder" => string(1) "0" "url" => string(35) "/kategorie-7297-energie-rozvody-tzb" ) 14924 => array(14) ( "id" => string(2) "70" "object_id" => string(5) "14924" "parent_object_id" => string(4) "7285" "category_name" => string(24) "Vytápění, krby, kamna" "category_description" => NULL "category_seo_title" => string(24) "Vytápění, krby, kamna" "category_seo_description" => string(24) "Vytápění, krby, kamna" "category_seo_keywords" => string(24) "Vytápění, krby, kamna" "category_url" => string(19) "vytapeni-krby-kamna" "article_object_id" => NULL "active" => string(1) "Y" "show_in_menu" => string(1) "Y" "catorder" => string(1) "0" "url" => string(36) "/kategorie-14924-vytapeni-krby-kamna" ) 296768 => array(14) ( "id" => string(2) "71" "object_id" => string(6) "296768" "parent_object_id" => string(4) "7285" "category_name" => string(19) "Přípravné práce" "category_description" => NULL "category_seo_title" => string(19) "Přípravné práce" "category_seo_description" => string(19) "Přípravné práce" "category_seo_keywords" => string(19) "Přípravné práce" "category_url" => string(15) "pripravne-prace" "article_object_id" => NULL "active" => string(1) "Y" "show_in_menu" => string(1) "Y" "catorder" => string(1) "0" "url" => string(33) "/kategorie-296768-pripravne-prace" ) 296770 => array(14) ( "id" => string(2) "72" "object_id" => string(6) "296770" "parent_object_id" => string(4) "7285" "category_name" => string(17) "Práce na pozemku" "category_description" => NULL "category_seo_title" => string(17) "Práce na pozemku" "category_seo_description" => string(17) "Práce na pozemku" "category_seo_keywords" => string(17) "Práce na pozemku" "category_url" => string(16) "prace-na-pozemku" "article_object_id" => NULL "active" => string(1) "Y" "show_in_menu" => string(1) "Y" "catorder" => string(1) "0" "url" => string(34) "/kategorie-296770-prace-na-pozemku" ) 296771 => array(14) ( "id" => string(2) "73" "object_id" => string(6) "296771" "parent_object_id" => string(4) "7285" "category_name" => string(6) "Sanita" "category_description" => NULL "category_seo_title" => string(6) "Sanita" "category_seo_description" => string(6) "Sanita" "category_seo_keywords" => string(6) "Sanita" "category_url" => string(6) "sanita" "article_object_id" => NULL "active" => string(1) "Y" "show_in_menu" => string(1) "Y" "catorder" => string(1) "0" "url" => string(24) "/kategorie-296771-sanita" ) 296772 => array(14) ( "id" => string(2) "74" "object_id" => string(6) "296772" "parent_object_id" => string(4) "7285" "category_name" => string(32) "Dokončovací práce a vybavení" "category_description" => NULL "category_seo_title" => string(32) "Dokončovací práce a vybavení" "category_seo_description" => string(32) "Dokončovací práce a vybavení" "category_seo_keywords" => string(32) "Dokončovací práce a vybavení" "category_url" => string(28) "dokoncovaci-prace-a-vybaveni" "article_object_id" => NULL "active" => string(1) "Y" "show_in_menu" => string(1) "Y" "catorder" => string(1) "0" "url" => string(46) "/kategorie-296772-dokoncovaci-prace-a-vybaveni" ) ) ) ) ) }
"_hero" => NULL "_sidebar" => object View(2){ protected _file => string(61) "/var/www/fachmani.cz.www/application/views/static/sidebar.php" protected _data => array(0) }
"_breadcrumbs" => NULL "_slot_view" => string(0) "" "_footer_html" => object View(2){ protected _file => string(65) "/var/www/fachmani.cz.www/application/views/static/footer_html.php" protected _data => array(2) ( "latestcontent" => string(11765) " <div style="background-color: #4e5152;"> <div class="container"> <div class="row"> <div class=" …" "_seznam_reklama" => bool FALSE ) }
"_footer" => object View(2){ protected _file => string(60) "/var/www/fachmani.cz.www/application/views/static/footer.php" protected _data => array(4) ( "_scripts" => NULL "_is_homepage" => bool FALSE "_saslib" => object View(2)
"set_seznam_reklamy" => bool FALSE "_show_trailers" => string(0) "" ) }{ protected _file => string(52) "/var/www/primadoma-modules/ads/views/_ads/saslib.php" protected _data => array(3) ( "kw" => string(0) "" "seznam_ads" => bool FALSE "branding" => string(4) "true" ) }
"header_leaderboard" => bool TRUE ) }{ 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(10) "<page_url>" protected _regex => array(1) ( "page_url" => string(7) "kontakt" ) protected _defaults => array(2) ( "controller" => string(11) "Staticpages" "action" => string(10) "staticpage" ) protected _route_regex => string(27) "#^(?P<page_url>kontakt)$#uD" }
protected _routes => array(0) protected _header => object HTTP_Header(0){ }
protected _body => NULL protected _directory => string(0) "" protected _controller => string(11) "Staticpages" protected _action => string(10) "staticpage" protected _uri => string(7) "kontakt" protected _external => bool FALSE protected _params => array(1) ( "page_url" => string(7) "kontakt" ) 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)
public template_dir => string(0) "" }{ }
protected _body => string(0) "" protected _cookies => array(0) protected _protocol => string(8) "HTTP/2.0" }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)
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(10) "<page_url>" protected _regex => array(1) ( "page_url" => string(7) "kontakt" ) protected _defaults => array(2) ( "controller" => string(11) "Staticpages" "action" => string(10) "staticpage" ) protected _route_regex => string(27) "#^(?P<page_url>kontakt)$#uD" }
protected _routes => array(0) protected _header => object HTTP_Header(0){ }
protected _body => NULL protected _directory => string(0) "" protected _controller => string(11) "Staticpages" protected _action => string(10) "staticpage" protected _uri => string(7) "kontakt" protected _external => bool FALSE protected _params => array(1) ( "page_url" => string(7) "kontakt" ) 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/2.0" }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)
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(10) "<page_url>" protected _regex => array(1) ( "page_url" => string(7) "kontakt" ) protected _defaults => array(2) ( "controller" => string(11) "Staticpages" "action" => string(10) "staticpage" ) protected _route_regex => string(27) "#^(?P<page_url>kontakt)$#uD" }
protected _routes => array(0) protected _header => object HTTP_Header(0){ }
protected _body => NULL protected _directory => string(0) "" protected _controller => string(11) "Staticpages" protected _action => string(10) "staticpage" protected _uri => string(7) "kontakt" protected _external => bool FALSE protected _params => array(1) ( "page_url" => string(7) "kontakt" ) 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/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 }