APPPATH/classes/Model/Seo.php [ 221 ]
216 ->on('seo_building_functions.type', '=', DB::expr("'$type'"))217 ->where('p_buidling_type_function.slug', '=', $slug)218 ->execute()219 ->as_array();220 221 return is_null($res) ? array() : $res[0];222 }223 }
-
APPPATH/classes/Model/Seo.php [ 221 ] » Kohana_Core::error_handler( arguments )
0
integer 8
1
string(19) "Undefined offset: 0"
2
string(94) "/home/dobrydom.prod.app/dobry-dom.pl/releases/20240327203412/application/classes/Model/Seo.php"
3
integer 221
4
array(3) ( "type" => string(8) "category" "slug" => string(19) "normal--hello-world" "res" => array(0) )
216 ->on('seo_building_functions.type', '=', DB::expr("'$type'"))217 ->where('p_buidling_type_function.slug', '=', $slug)218 ->execute()219 ->as_array();220 221 return is_null($res) ? array() : $res[0];222 }223 }
-
APPPATH/classes/Controller/Catalog/Index.php [ 69 ] » Model_Seo->getFunction( arguments )
0
string(8) "category"
1
string(19) "normal--hello-world"
64 $filters = ['build-type' => [$buildType['id']]];65 }66 67 //----------- Get SEO for category68 if ($paramBuildType !== 'all') {69 $this->template->seo = $this->modelSeo->getFunction('category', $paramBuildType);70 }71 72 //----------- Set promotional flags73 $hot = $recommended = $month = null;74 switch (strtolower($this->request->param('type'))) {
-
SYSPATH/classes/Kohana/Controller.php [ 85 ] » Controller_Catalog_Index->action_index( )
80 array(':uri' => $this->request->uri())81 )->request($this->request);82 }83 84 // Execute the action itself85 $this->{$action}();86 87 // Execute the "after action" method88 $this->after();89 90 // Return the response
-
{PHP internal call} » Kohana_Controller->execute( )
-
SYSPATH/classes/Kohana/Request/Client/Internal.php [ 93 ] » ReflectionMethod->invoke( arguments )
0
object Controller_Catalog_Index(16)
{ public modelSeo => object Model_Seo(0)
{ }
public template => object View(2){ protected _file => string(96) "/home/dobrydom.prod.app/dobry-dom.pl/releases/20240327203412/application/views/layout/layout.php" protected _data => array(4) ( "doc_end" => array(3) ( 0 => object View(2)
public lang => string(2) "pl" public lang_id => string(1) "1" public header => object View(2){ protected _file => string(94) "/home/dobrydom.prod.app/dobry-dom.pl/releases/20240327203412/application/views/script/like.php" protected _data => array(0) }
1 => object View(2){ protected _file => string(107) "/home/dobrydom.prod.app/dobry-dom.pl/releases/20240327203412/application/views/admin/script/konjax_init.php" protected _data => array(1) ( "url" => string(14) "/ajax/frontcat" ) }
2 => object View(2){ protected _file => string(114) "/home/dobrydom.prod.app/dobry-dom.pl/releases/20240327203412/application/views/script/catalog/js-script-search.php" protected _data => array(1) ( "type" => string(7) "catalog" ) }
) "seo" => array(16) ( "id" => string(1) "1" "directory" => string(7) "Catalog" "controller" => string(5) "Index" "action" => string(5) "index" "param" => NULL "placeholders" => NULL "uri" => string(2) "pl" "name" => string(6) "Polska" "html-lang" => string(2) "pl" "order" => string(1) "1" "seo_custom_id" => string(1) "1" "locale_id" => string(1) "1" "title" => string(15) "PROJEKTY DOMÓW" "kw" => string(26) "DOBRY DOM, projekty domów" "desc" => string(9) "DOBRY DOM" "text" => string(9) "DOBRY DOM" ) "css" => array(1) ( 0 => string(32) "/public/toastr-master/toastr.css" ) "scripts" => array(2) ( 0 => string(29) "/public/controllerAjax.0.8.js" 1 => string(31) "/public/toastr-master/toastr.js" ) ) }{ protected _file => string(102) "/home/dobrydom.prod.app/dobry-dom.pl/releases/20240327203412/application/views/layout/parts/header.php" protected _data => array(0) }
public footer => object View(2){ protected _file => string(102) "/home/dobrydom.prod.app/dobry-dom.pl/releases/20240327203412/application/views/layout/parts/footer.php" protected _data => array(0) }
public content => NULL public email => string(0) "" protected doc_end => array(3) ( 0 => object View(2){ protected _file => string(94) "/home/dobrydom.prod.app/dobry-dom.pl/releases/20240327203412/application/views/script/like.php" protected _data => array(0) }
1 => object View(2){ protected _file => string(107) "/home/dobrydom.prod.app/dobry-dom.pl/releases/20240327203412/application/views/admin/script/konjax_init.php" protected _data => array(1) ( "url" => string(14) "/ajax/frontcat" ) }
2 => object View(2){ protected _file => string(114) "/home/dobrydom.prod.app/dobry-dom.pl/releases/20240327203412/application/views/script/catalog/js-script-search.php" protected _data => array(1) ( "type" => string(7) "catalog" ) }
) protected css => array(1) ( 0 => string(32) "/public/toastr-master/toastr.css" ) protected scripts => array(2) ( 0 => string(29) "/public/controllerAjax.0.8.js" 1 => string(31) "/public/toastr-master/toastr.js" ) protected isInsideCatalog => bool TRUE private konjaxIncluded => bool TRUE 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 TRUE protected _referrer => string(50) "http://dobry-dom.pl/pl/catalog/normal--hello-world" protected _route => object Route(5)
public response => object Response(5){ protected _filters => array(0) protected _uri => string(37) "<lng>/catalog(/<build_type>(/<type>))" protected _regex => array(2) ( "type" => string(35) "catalog|best-month|sale|recommended" "build_type" => string(11) "[a-zAA-Z-]*" ) protected _defaults => array(6) ( "directory" => string(7) "Catalog" "controller" => string(5) "Index" "action" => string(5) "index" "type" => string(7) "catalog" "page" => integer 1 "build_type" => string(3) "all" ) protected _route_regex => string(119) "#^(?P<lng>[^/.,;?\n]++)/catalog(?:/(?P<build_type>[a-zAA-Z-]*)(?:/(?P<type>catalog|best-month|sale|recommended))?)?$#uD" }
protected _routes => array(0) protected _header => object HTTP_Header(0){ }
protected _body => NULL protected _directory => string(7) "Catalog" protected _controller => string(5) "Index" protected _action => string(5) "index" protected _uri => string(30) "pl/catalog/normal--hello-world" protected _external => bool FALSE protected _params => array(4) ( "lng" => string(2) "pl" "build_type" => string(19) "normal--hello-world" "type" => string(7) "catalog" "page" => integer 1 ) 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" }88 89 // Create a new instance of the controller90 $controller = $class->newInstance($request, $response);91 92 // Run the controller's execute() method93 $response = $class->getMethod('execute')->invoke($controller);94 95 if (!$response instanceof Response) {96 // Controller failed to return a Response.97 throw new Kohana_Exception('Controller failed to return a Response');98 }
-
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.1" protected _secure => bool TRUE protected _referrer => string(50) "http://dobry-dom.pl/pl/catalog/normal--hello-world" protected _route => object Route(5)
{ protected _filters => array(0) protected _uri => string(37) "<lng>/catalog(/<build_type>(/<type>))" protected _regex => array(2) ( "type" => string(35) "catalog|best-month|sale|recommended" "build_type" => string(11) "[a-zAA-Z-]*" ) protected _defaults => array(6) ( "directory" => string(7) "Catalog" "controller" => string(5) "Index" "action" => string(5) "index" "type" => string(7) "catalog" "page" => integer 1 "build_type" => string(3) "all" ) protected _route_regex => string(119) "#^(?P<lng>[^/.,;?\n]++)/catalog(?:/(?P<build_type>[a-zAA-Z-]*)(?:/(?P<type>catalog|best-month|sale|recommended))?)?$#uD" }
protected _routes => array(0) protected _header => object HTTP_Header(0){ }
protected _body => NULL protected _directory => string(7) "Catalog" protected _controller => string(5) "Index" protected _action => string(5) "index" protected _uri => string(30) "pl/catalog/normal--hello-world" protected _external => bool FALSE protected _params => array(4) ( "lng" => string(2) "pl" "build_type" => string(19) "normal--hello-world" "type" => string(7) "catalog" "page" => integer 1 ) 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.1" }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 callbacks117 foreach ($this->header_callbacks() as $header => $callback) {118 if ($response->headers($header)) {119 $cb_result = call_user_func($callback, $request, $response, $this);
-
SYSPATH/classes/Kohana/Request.php [ 927 ] » Kohana_Request_Client->execute( arguments )
0
object Request(19)
{ protected _requested_with => NULL protected _method => string(3) "GET" protected _protocol => string(8) "HTTP/1.1" protected _secure => bool TRUE protected _referrer => string(50) "http://dobry-dom.pl/pl/catalog/normal--hello-world" protected _route => object Route(5)
{ protected _filters => array(0) protected _uri => string(37) "<lng>/catalog(/<build_type>(/<type>))" protected _regex => array(2) ( "type" => string(35) "catalog|best-month|sale|recommended" "build_type" => string(11) "[a-zAA-Z-]*" ) protected _defaults => array(6) ( "directory" => string(7) "Catalog" "controller" => string(5) "Index" "action" => string(5) "index" "type" => string(7) "catalog" "page" => integer 1 "build_type" => string(3) "all" ) protected _route_regex => string(119) "#^(?P<lng>[^/.,;?\n]++)/catalog(?:/(?P<build_type>[a-zAA-Z-]*)(?:/(?P<type>catalog|best-month|sale|recommended))?)?$#uD" }
protected _routes => array(0) protected _header => object HTTP_Header(0){ }
protected _body => NULL protected _directory => string(7) "Catalog" protected _controller => string(5) "Index" protected _action => string(5) "index" protected _uri => string(30) "pl/catalog/normal--hello-world" protected _external => bool FALSE protected _params => array(4) ( "lng" => string(2) "pl" "build_type" => string(19) "normal--hello-world" "type" => string(7) "catalog" "page" => integer 1 ) 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) }
}922 throw new Request_Exception('Unable to execute :uri without a Kohana_Request_Client', array(923 ':uri' => $this->_uri,924 ));925 }926 927 return $this->_client->execute($this);928 }929 930 /**931 * Returns whether this request is the initial request Kohana received.932 * 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 // Debug::pre_dump_die( $response );122 }