APPPATH/classes/Controller/Index/Catalog.php [ 295 ]
290
291 $query = $this->sql_products['select'].', c1.`description'.$this->sql_lang.'` AS description, c1.`geolocation`, c1.`prod_square`, c1.advantages, c1.sostav '.$this->sql_products['body'].' WHERE c1.alias = '."'".addslashes($alias)."'".' AND c1.status = 1'.$this->sql_products['group'].' LIMIT 0,1';
292 $prod = DB::query(Database::SELECT,$query)->execute('laravel')->as_array();
293 if(count($prod) < 1)
294 {
295 throw new HTTP_Exception_404();
296 }
297 $product = $prod[0];
298
299 // Ставим куку на просмотр товара
300 $allow_counter = true;
-
SYSPATH/classes/Kohana/Controller.php [ 84 ] » Controller_Index_Catalog->action_prodpage()
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_Index_Catalog(24)
{ public template => object View(2)
{ protected _file => string(77) "/var/www/batumihome/data/www/batumihome.ge/application/views/index/v_base.php" protected _data => array(26) ( "site_name" => string(11) "Batumi Home" "site_description" => string(11) "Batumi Home" "page_title" => NULL "title" => NULL "breadcrumbs" => array(0) "sel_lang" => string(2) "ge" "by_page" => integer 12 "page" => integer 1 "sort" => integer 0 "top_news" => array(0) "url_lang" => string(0) "" "index_lang" => string(2) "GE" "categories" => array(3) ( 0 => array(2) ( "title" => string(49) "ქირავდება დღიურად" "alias" => string(10) "daily-rent" ) 1 => array(2) ( "title" => string(27) "ქირავდება" "alias" => string(13) "longtime-rent" ) 2 => array(2) ( "title" => string(37) "ქონების ყიდვა" "alias" => string(10) "buy-realty" ) ) "meta_keywords" => NULL "meta_description" => string(11) "Batumi Home" "meta_title" => string(11) "Batumi Home" "page_body_class" => string(0) "" "hero_section" => NULL "seo_text" => NULL "canonical_url" => NULL "selected_url" => string(20) "/object/93bgcfxfl5o9" "my_url" => string(20) "/object/93bgcfxfl5o9" "content" => NULL "is_bcrumbs" => bool TRUE "is_map" => bool FALSE "settings" => object Config_Group(7)
protected sql_products => array(4) ( "select" => string(1092) "SELECT c1.id, c1.`recommended`, c1.`viewed`, c1.`region_id`, c1.`street_id`, c1.`created_at`, c1.`prod_square`, (SELECT fpv1.`v …" "body" => string(424) "FROM products AS c1 INNER JOIN `category_product` AS cpt ON cpt.`product_id` = c1.`id` AND cpt.`category_id` IN (-1,582,583,591) …" "group" => string(15) " GROUP BY c1.id" "ending" => string(42) " ORDER BY c1.`sort_order` ASC, c1.id DESC," ) protected categories => array(3) ( 0 => array(2) ( "title" => string(49) "ქირავდება დღიურად" "alias" => string(10) "daily-rent" ) 1 => array(2) ( "title" => string(27) "ქირავდება" "alias" => string(13) "longtime-rent" ) 2 => array(2) ( "title" => string(37) "ქონების ყიდვა" "alias" => string(10) "buy-realty" ) ) protected allow_cats => array(4) ( 0 => integer -1 1 => integer 582 2 => integer 583 3 => integer 591 ) protected site_settings => object Config_Group(7){ public site_name => string(11) "Batumi Home" public site_description => string(11) "Batumi Home" public admin_email => string(18) "info@batumihome.ge" public email => string(18) "info@batumihome.ge" public phone1 => string(19) "+995 (555) 11-22-33" public phone2 => string(13) "+995555112233" public adress1 => string(6) "Batumi" }
) }{ public site_name => string(11) "Batumi Home" public site_description => string(11) "Batumi Home" public admin_email => string(18) "info@batumihome.ge" public email => string(18) "info@batumihome.ge" public phone1 => string(19) "+995 (555) 11-22-33" public phone2 => string(13) "+995555112233" public adress1 => string(6) "Batumi" }
protected by_page => integer 12 protected page => integer 1 protected sort => integer 0 protected sql_sort => string(18) "c1.created_at DESC" protected breadcrumbs => array(1) ( 0 => array(2) ( "href" => string(1) "/" "name" => string(14) "Главная" ) ) protected lang => string(2) "ge" protected ulang => string(2) "GE" protected sql_lang => string(0) "" protected url_lang => string(0) "" protected lparams => array(3) ( 6 => string(30) "საძინებელი" 7 => string(37) "სველი წერტილი" 25 => string(34) "აშენების დრო" ) protected selected_url => string(20) "/object/93bgcfxfl5o9" protected user => NULL protected auth => object Auth_ORM(2){ protected _session => object Session_Database(11)
protected cache => object Cache_File(3){ protected _db => object Database_MySQLi(6)
protected _config => object Config_Group(8){ protected _connection_id => string(40) "ff477748bcbe1c44972a67213277aa5a0c2eb350" protected _identifier => string(1) "`" public last_query => string(108) "SELECT `id`,`name` AS name FROM `features` WHERE `type` = 2 AND `filter` = 1 ORDER BY `v_id` ASC, `name` ASC" protected _instance => string(7) "default" protected _connection => object mysqli(19)
protected _table => string(8) "sessions" protected _columns => array(3) ( "session_id" => string(10) "session_id" "last_active" => string(11) "last_active" "contents" => string(8) "contents" ) protected _gc => integer 500 protected _session_id => string(23) "6606e65c5a4d50-67521427" protected _update_id => NULL protected _name => string(7) "session" protected _lifetime => integer 0 protected _encrypted => bool FALSE protected _data => array(0) protected _destroyed => bool FALSE }{ public affected_rows => NULL public client_info => NULL public client_version => NULL public connect_errno => NULL public connect_error => NULL public errno => NULL public error => NULL public error_list => NULL public field_count => NULL public host_info => NULL public info => NULL public insert_id => NULL public server_info => NULL public server_version => NULL public stat => NULL public sqlstate => NULL public protocol_version => NULL public thread_id => NULL public warning_count => NULL }
protected _config => array(6) ( "type" => string(6) "MySQLi" "connection" => array(4) ( "hostname" => string(9) "localhost" "database" => string(8) "batuhome" "persistent" => bool FALSE "ssl" => NULL ) "table_prefix" => string(0) "" "charset" => string(4) "utf8" "caching" => bool FALSE "profiling" => bool TRUE ) }{ public driver => string(3) "ORM" public hash_method => string(6) "sha256" public hash_key => string(19) "bO*%^*7b*(&^7tvcuy^" public lifetime => integer 1209600 public session_type => string(8) "database" public session_key => string(9) "auth_user" public cost => integer 10 public users => array(0) }
}{ protected _cache_dir => NULL protected _cache_dir_usable => bool FALSE protected _config => array(3) ( "driver" => string(4) "file" "cache_dir" => string(60) "/var/www/batumihome/data/www/batumihome.ge/application/cache" "default_expire" => integer 3600 ) }
protected session => object Session_Database(11){ protected _db => object Database_MySQLi(6)
protected settings => object Config_Group(7){ protected _connection_id => string(40) "ff477748bcbe1c44972a67213277aa5a0c2eb350" protected _identifier => string(1) "`" public last_query => string(108) "SELECT `id`,`name` AS name FROM `features` WHERE `type` = 2 AND `filter` = 1 ORDER BY `v_id` ASC, `name` ASC" protected _instance => string(7) "default" protected _connection => object mysqli(19)
protected _table => string(8) "sessions" protected _columns => array(3) ( "session_id" => string(10) "session_id" "last_active" => string(11) "last_active" "contents" => string(8) "contents" ) protected _gc => integer 500 protected _session_id => string(23) "6606e65c5a4d50-67521427" protected _update_id => NULL protected _name => string(7) "session" protected _lifetime => integer 0 protected _encrypted => bool FALSE protected _data => array(0) protected _destroyed => bool FALSE }{ public affected_rows => NULL public client_info => NULL public client_version => NULL public connect_errno => NULL public connect_error => NULL public errno => NULL public error => NULL public error_list => NULL public field_count => NULL public host_info => NULL public info => NULL public insert_id => NULL public server_info => NULL public server_version => NULL public stat => NULL public sqlstate => NULL public protocol_version => NULL public thread_id => NULL public warning_count => NULL }
protected _config => array(6) ( "type" => string(6) "MySQLi" "connection" => array(4) ( "hostname" => string(9) "localhost" "database" => string(8) "batuhome" "persistent" => bool FALSE "ssl" => NULL ) "table_prefix" => string(0) "" "charset" => string(4) "utf8" "caching" => bool FALSE "profiling" => bool TRUE ) }{ public site_name => string(11) "Batumi Home" public site_description => string(11) "Batumi Home" public admin_email => string(18) "info@batumihome.ge" public email => string(18) "info@batumihome.ge" public phone1 => string(19) "+995 (555) 11-22-33" public phone2 => string(13) "+995555112233" public adress1 => string(6) "Batumi" }
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(40) "http://batumihome.ge/object/93bgcfxfl5o9" protected _route => object Route(5)
public response => object Response(5){ protected _filters => array(0) protected _uri => string(23) "(<lang>/)object/<alias>" protected _regex => array(2) ( "alias" => string(14) "[a-zA-Z0-9_-]+" "lang" => string(5) "ru|en" ) protected _defaults => array(4) ( "lang" => string(2) "ge" "controller" => string(7) "catalog" "action" => string(8) "prodpage" "directory" => string(5) "index" ) protected _route_regex => string(59) "#^(?:(?P<lang>ru|en)/)?object/(?P<alias>[a-zA-Z0-9_-]+)$#uD" }
protected _routes => array(0) protected _header => object HTTP_Header(0){ }
protected _body => NULL protected _directory => string(5) "Index" protected _controller => string(7) "Catalog" protected _action => string(8) "prodpage" protected _uri => string(19) "object/93bgcfxfl5o9" protected _external => bool FALSE protected _params => array(2) ( "lang" => string(2) "ge" "alias" => string(12) "93bgcfxfl5o9" ) 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)
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(40) "http://batumihome.ge/object/93bgcfxfl5o9" protected _route => object Route(5)
{ protected _filters => array(0) protected _uri => string(23) "(<lang>/)object/<alias>" protected _regex => array(2) ( "alias" => string(14) "[a-zA-Z0-9_-]+" "lang" => string(5) "ru|en" ) protected _defaults => array(4) ( "lang" => string(2) "ge" "controller" => string(7) "catalog" "action" => string(8) "prodpage" "directory" => string(5) "index" ) protected _route_regex => string(59) "#^(?:(?P<lang>ru|en)/)?object/(?P<alias>[a-zA-Z0-9_-]+)$#uD" }
protected _routes => array(0) protected _header => object HTTP_Header(0){ }
protected _body => NULL protected _directory => string(5) "Index" protected _controller => string(7) "Catalog" protected _action => string(8) "prodpage" protected _uri => string(19) "object/93bgcfxfl5o9" protected _external => bool FALSE protected _params => array(2) ( "lang" => string(2) "ge" "alias" => string(12) "93bgcfxfl5o9" ) 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(['_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/1.1" protected _secure => bool TRUE protected _referrer => string(40) "http://batumihome.ge/object/93bgcfxfl5o9" protected _route => object Route(5)
{ protected _filters => array(0) protected _uri => string(23) "(<lang>/)object/<alias>" protected _regex => array(2) ( "alias" => string(14) "[a-zA-Z0-9_-]+" "lang" => string(5) "ru|en" ) protected _defaults => array(4) ( "lang" => string(2) "ge" "controller" => string(7) "catalog" "action" => string(8) "prodpage" "directory" => string(5) "index" ) protected _route_regex => string(59) "#^(?:(?P<lang>ru|en)/)?object/(?P<alias>[a-zA-Z0-9_-]+)$#uD" }
protected _routes => array(0) protected _header => object HTTP_Header(0){ }
protected _body => NULL protected _directory => string(5) "Index" protected _controller => string(7) "Catalog" protected _action => string(8) "prodpage" protected _uri => string(19) "object/93bgcfxfl5o9" protected _external => bool FALSE protected _params => array(2) ( "lang" => string(2) "ge" "alias" => string(12) "93bgcfxfl5o9" ) 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 [ 120 ] » Kohana_Request->execute()
115 /** 116 * Execute the main request. A source of the URI can be passed, eg: $_SERVER['PATH_INFO']. 117 * If no source is specified, the URI will be automatically detected. 118 */ 119 echo Request::factory(TRUE, [], FALSE) 120 ->execute() 121 ->send_headers(TRUE) 122 ->body(); 123 }