MODPATH/database/classes/database/mysqli.php [ 174 ]
169 {
170 // This benchmark is worthless
171 Profiler::delete($benchmark);
172 }
173
174 throw new Database_Exception(':error [ :query ]',
175 array(':error' => mysqli_error($this->_connection), ':query' => $sql),
176 mysqli_errno($this->_connection));
177 }
178
179 if (isset($benchmark))
-
MODPATH/database/classes/kohana/database/query.php [ 245 ] » Database_MySQLi->query(arguments)
0
integer 1
1
string(198) "SELECT `project`.* FROM `projects` AS `project` JOIN `projects_categories` ON (`projects_categories`.`project_id` = `project`.`i …"
2
string(13) "Model_Project"
3
array(0)
240 return new Database_Result_Cached($result, $sql, $as_object, $object_params); 241 } 242 } 243 244 // Execute the query 245 $result = $db->query($this->_type, $sql, $as_object, $object_params); 246 247 if (isset($cache_key) AND $this->_lifetime > 0) 248 { 249 // Cache the result array 250 Kohana::cache($cache_key, $result->as_array(), $this->_lifetime);
-
MODPATH/orm/classes/kohana/orm.php [ 963 ] » Kohana_Database_Query->execute(arguments)
0
object Database_MySQLi(6)
{ protected _connection_id => string(40) "38eb4f700d8e178f1f5ca0c014d3457042a2241a" protected _identifier => string(1) "`" public last_query => string(104) "SELECT `category`.* FROM `categories` AS `category` WHERE `parent_id` = 89 ORDER BY `category`.`lft` ASC" protected _instance => string(7) "default" protected _connection => object mysqli(19)
{ 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(3) ( "hostname" => string(9) "localhost" "database" => string(8) "optdveri" "persistent" => bool FALSE ) "table_prefix" => string(0) "" "charset" => string(4) "utf8" "caching" => bool FALSE "profiling" => bool TRUE ) }958 } 959 960 if ($multiple === TRUE) 961 { 962 // Return database iterator casting to this object type 963 $result = $this->_db_builder->as_object(get_class($this))->execute($this->_db); 964 965 $this->reset(); 966 967 return $result; 968 }
-
MODPATH/orm/classes/kohana/orm.php [ 922 ] » Kohana_ORM->_load_result(arguments)
0
bool TRUE
917 } 918 } 919 920 $this->_build(Database::SELECT); 921 922 return $this->_load_result(TRUE); 923 } 924 925 /** 926 * Loads a database result, either as a new record for this model, or as 927 * an iterator for multiple rows.
-
APPPATH/classes/controller/index/catalog.php [ 80 ] » Kohana_ORM->find_all()
75 throw new HTTP_Exception_404('File not found'); 76 } 77 78 $check_favorite = ORM::factory('category'); 79 80 $projects = $category->projects->where('status', '!=', 0)->find_all(); 81 // Выводим в шаблон 82 $page_title = HTML::anchor('', 'Кровельный центр "Мастер-кровли"') . " → " . HTML::anchor('catalog', 'Каталог'). ' → '; 83 foreach($links as $parent) 84 { 85 $page_title .= $parent . ' → ';
-
{PHP internal call} » Controller_Index_Catalog->action_cat()
-
SYSPATH/classes/kohana/request/client/internal.php [ 118 ] » ReflectionMethod->invoke(arguments)
0
object Controller_Index_Catalog(9)
{ public template => object View(2)
{ protected _file => string(85) "/var/www/asgera/data/www/kohana3/opt-dveri.ru/application/views/index/v_base_main.php" protected _data => array(16) ( "site_name" => string(12) "opt-dveri.ru" "page_title" => NULL "title" => NULL "h1" => NULL "keywords" => NULL "description" => NULL "topmenu" => object Response(5)
protected user => bool FALSE protected auth => object Auth_ORM(2){ protected _status => integer 200 protected _header => object HTTP_Header(0)
"styles" => array(18) ( 0 => string(58) "https://fonts.googleapis.com/css?family=Montserrat:400,700" 1 => string(128) "https://fonts.googleapis.com/css?family=Raleway:100,100i,200,200i,300,300i,400,400i,500,500i,600,600i,700,700i,800,800i,900,900i" 2 => string(86) "https://fonts.googleapis.com/css?family=Lora:400,700,400italic,700italic&subset=latin"" 3 => string(46) "media/assets/font-awesome/css/font-awesome.css" 4 => string(34) "media/assets/tether/tether.min.css" 5 => string(44) "media/assets/bootstrap/css/bootstrap.min.css" 6 => string(40) "media/assets/soundcloud-plugin/style.css" 7 => string(35) "media/assets/socicon/css/styles.css" 8 => string(40) "media/assets/gdpr-plugin/gdpr-styles.css" 9 => string(35) "media/assets/socicon/css/styles.css" 10 => string(40) "media/assets/animate.css/animate.min.css" 11 => string(35) "media/assets/dropdown/css/style.css" 12 => string(50) "media/assets/mobirise3-blocks-plugin/css/style.css" 13 => string(32) "media/assets/theme/css/style.css" 14 => string(44) "media/assets/mobirise/css/mbr-additional.css" 15 => string(21) "media/css/mystyle.css" 16 => string(40) "media/fancybox/jquery.fancybox-1.3.4.css" 17 => string(24) "media/css/modal_form.css" ) "scripts" => array(19) ( 0 => string(63) "http://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js" 1 => string(44) "media/assets/web/assets/jquery/jquery.min.js" 2 => string(33) "media/assets/tether/tether.min.js" 3 => string(42) "media/assets/bootstrap/js/bootstrap.min.js" 4 => string(55) "media/assets/cookies-alert-plugin/cookies-alert-core.js" 5 => string(57) "media/assets/cookies-alert-plugin/cookies-alert-script.js" 6 => string(50) "media/assets/touch-swipe/jquery.touch-swipe.min.js" 7 => string(55) "media/assets/viewport-checker/jquery.viewportchecker.js" 8 => string(33) "media/assets/jarallax/jarallax.js" 9 => string(43) "media/assets/smooth-scroll/smooth-scroll.js" 10 => string(65) "media/assets/bootstrap-carousel-swipe/bootstrap-carousel-swipe.js" 11 => string(38) "media/assets/dropdown/js/script.min.js" 12 => string(49) "media/assets/mobirise3-blocks-plugin/js/script.js" 13 => string(31) "media/assets/theme/js/script.js" 14 => string(14) "media/js/js.js" 15 => string(16) "media/js/send.js" 16 => string(44) "media/fancybox/jquery.fancybox-1.3.4.pack.js" 17 => string(20) "media/js/fancybox.js" 18 => string(16) "media/js/send.js" ) "block_left" => NULL "block_center" => NULL "block_right" => NULL "block_footer" => NULL "loginheader" => object Response(5){ }
protected _body => string(2396) "<section id="ext_menu-0" data-rv-view="0"> <nav class="navbar navbar-dropdown navbar-fixed-top"> <div class="contai …" protected _cookies => array(0) protected _protocol => string(8) "HTTP/1.1" }{ protected _status => integer 200 protected _header => object HTTP_Header(0)
"menufooter" => object Response(5){ }
protected _body => string(55) " <a href="/login">Вход для дилеров</a>" protected _cookies => array(0) protected _protocol => string(8) "HTTP/1.1" }{ protected _status => integer 200 protected _header => object HTTP_Header(0)
"city" => object Response(5){ }
protected _body => string(228) "<div id="menufooter"><ul> <li><a href="/">Главная</a></li><li><a href="/news">Новости</a></li><li><a href="/clients">Заказчи …" protected _cookies => array(0) protected _protocol => string(8) "HTTP/1.1" }{ protected _status => integer 200 protected _header => object HTTP_Header(0)
) }{ }
protected _body => string(1973) "<div>Ваша страна: Россия</div> <div>Выберите регион и город:</div> <form action="" method="post" accept-charset="utf-8"> <select …" protected _cookies => array(0) protected _protocol => string(8) "HTTP/1.1" }{ protected _session => object Session_Native(5)
protected cache => NULL protected session => object Session_Native(5){ protected _name => string(7) "session" protected _lifetime => integer 604800 protected _encrypted => bool FALSE protected _data => array(0) protected _destroyed => bool FALSE }
protected _config => object Config_Group(7){ public driver => string(3) "ORM" public hash_method => string(6) "sha256" public hash_key => string(16) "asjdhas6f2e12kas" public lifetime => integer 1209600 public session_type => string(6) "native" public session_key => string(9) "auth_user" public users => array(0) }
}{ protected _name => string(7) "session" protected _lifetime => integer 604800 protected _encrypted => bool FALSE protected _data => array(0) protected _destroyed => bool FALSE }
protected captcha => string(84) "<img src="/captcha/default" width="150" height="50" alt="Captcha" class="captcha" />" public auto_render => bool TRUE public request => object Request(21){ protected _requested_with => NULL protected _method => string(3) "GET" protected _protocol => string(8) "HTTP/1.0" protected _secure => bool FALSE protected _referrer => NULL protected _route => object Route(5)
public response => object Response(5){ protected _callback => NULL protected _uri => string(34) "catalog(/<action>(/c<cat>)(/<id>))" protected _regex => array(0) protected _defaults => array(3) ( "directory" => string(5) "index" "action" => string(5) "index" "controller" => string(7) "catalog" ) protected _route_regex => string(97) "#^catalog(?:/(?P<action>[^/.,;?\n]++)(?:/c(?P<cat>[^/.,;?\n]++))?(?:/(?P<id>[^/.,;?\n]++))?)?$#uD" }
protected _routes => NULL protected _response => object Response(5){ protected _status => integer 200 protected _header => object HTTP_Header(0)
protected _header => object HTTP_Header(0){ }
protected _body => string(0) "" protected _cookies => array(0) protected _protocol => string(8) "HTTP/1.0" }{ }
protected _body => NULL protected _directory => string(5) "index" protected _controller => string(7) "catalog" protected _action => string(3) "cat" protected _uri => string(15) "catalog/cat/c89" protected _external => bool FALSE protected _params => array(1) ( "cat" => string(2) "89" ) protected _get => array(0) protected _post => array(0) protected _cookies => array(0) protected _client => object Request_Client_Internal(2){ protected _previous_environment => NULL protected _cache => NULL }
public _injected_routes => 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.0" }113 throw new HTTP_Exception_404('The requested URL :uri was not found on this server.', 114 array(':uri' => $request->uri())); 115 } 116 117 $method = $class->getMethod('action_'.$action); 118 $method->invoke($controller); 119 120 // Execute the "after action" method 121 $class->getMethod('after')->invoke($controller); 122 } 123 catch (Exception $e)
-
SYSPATH/classes/kohana/request/client.php [ 64 ] » Kohana_Request_Client_Internal->execute_request(arguments)
0
object Request(21)
{ protected _requested_with => NULL protected _method => string(3) "GET" protected _protocol => string(8) "HTTP/1.0" protected _secure => bool FALSE protected _referrer => NULL protected _route => object Route(5)
{ protected _callback => NULL protected _uri => string(34) "catalog(/<action>(/c<cat>)(/<id>))" protected _regex => array(0) protected _defaults => array(3) ( "directory" => string(5) "index" "action" => string(5) "index" "controller" => string(7) "catalog" ) protected _route_regex => string(97) "#^catalog(?:/(?P<action>[^/.,;?\n]++)(?:/c(?P<cat>[^/.,;?\n]++))?(?:/(?P<id>[^/.,;?\n]++))?)?$#uD" }
protected _routes => NULL protected _response => object Response(5){ protected _status => integer 200 protected _header => object HTTP_Header(0)
protected _header => object HTTP_Header(0){ }
protected _body => string(0) "" protected _cookies => array(0) protected _protocol => string(8) "HTTP/1.0" }{ }
protected _body => NULL protected _directory => string(5) "index" protected _controller => string(7) "catalog" protected _action => string(3) "cat" protected _uri => string(15) "catalog/cat/c89" protected _external => bool FALSE protected _params => array(1) ( "cat" => string(2) "89" ) protected _get => array(0) protected _post => array(0) protected _cookies => array(0) protected _client => object Request_Client_Internal(2){ protected _previous_environment => NULL protected _cache => NULL }
public _injected_routes => array(0) }59 public function execute(Request $request) 60 { 61 if ($this->_cache instanceof HTTP_Cache) 62 return $this->_cache->execute($this, $request); 63 64 return $this->execute_request($request); 65 } 66 67 /** 68 * Processes the request passed to it and returns the response from 69 * the URI resource identified.
-
SYSPATH/classes/kohana/request.php [ 1138 ] » Kohana_Request_Client->execute(arguments)
0
object Request(21)
{ protected _requested_with => NULL protected _method => string(3) "GET" protected _protocol => string(8) "HTTP/1.0" protected _secure => bool FALSE protected _referrer => NULL protected _route => object Route(5)
{ protected _callback => NULL protected _uri => string(34) "catalog(/<action>(/c<cat>)(/<id>))" protected _regex => array(0) protected _defaults => array(3) ( "directory" => string(5) "index" "action" => string(5) "index" "controller" => string(7) "catalog" ) protected _route_regex => string(97) "#^catalog(?:/(?P<action>[^/.,;?\n]++)(?:/c(?P<cat>[^/.,;?\n]++))?(?:/(?P<id>[^/.,;?\n]++))?)?$#uD" }
protected _routes => NULL protected _response => object Response(5){ protected _status => integer 200 protected _header => object HTTP_Header(0)
protected _header => object HTTP_Header(0){ }
protected _body => string(0) "" protected _cookies => array(0) protected _protocol => string(8) "HTTP/1.0" }{ }
protected _body => NULL protected _directory => string(5) "index" protected _controller => string(7) "catalog" protected _action => string(3) "cat" protected _uri => string(15) "catalog/cat/c89" protected _external => bool FALSE protected _params => array(1) ( "cat" => string(2) "89" ) protected _get => array(0) protected _post => array(0) protected _cookies => array(0) protected _client => object Request_Client_Internal(2){ protected _previous_environment => NULL protected _cache => NULL }
public _injected_routes => array(0) }1133 throw new Request_Exception('Unable to execute :uri without a Kohana_Request_Client', array( 1134 ':uri' => $this->_uri, 1135 )); 1136 } 1137 1138 return $this->_client->execute($this); 1139 } 1140 1141 /** 1142 * Returns whether this request is the initial request Kohana received. 1143 * Can be used to test for sub requests.
-
DOCROOT/index.php [ 110 ] » Kohana_Request->execute()
105 /** 106 * Execute the main request. A source of the URI can be passed, eg: $_SERVER['PATH_INFO']. 107 * If no source is specified, the URI will be automatically detected. 108 */ 109 echo Request::factory() 110 ->execute() 111 ->send_headers() 112 ->body();