MODPATH/database/classes/kohana/database/mysql.php [ 170 ]
165 if (isset($benchmark)) {
166 // This benchmark is worthless
167 Profiler::delete($benchmark);
168 }
169
170 throw new Database_Exception(':error [ :query ]',
171 array(':error' => mysql_error($this->_connection), ':query' => $sql),
172 mysql_errno($this->_connection));
173 }
174
175 if (isset($benchmark)) {
-
MODPATH/database/classes/kohana/database/query.php [ 245 ] » Kohana_Database_MySQL->query(arguments)
0
integer 1
1
string(50) "SELECT * FROM `faq_categories` WHERE `lang` = 'en'"
2
bool FALSE
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);
-
APPPATH/classes/model/faq.php [ 9 ] » Kohana_Database_Query->execute()
4 { 5 public function get_cats() 6 { 7 $query = DB::select()->from('faq_categories')->where('lang', '=', Request::$lang); 8 9 return $query->execute(); 10 } 11 12 public function get_cat_by_slug($slug) 13 { 14 $query = DB::select()->from('faq_categories')->where('lang', '=', Request::$lang)->and_where('slug', '=', $slug)->limit(1);
-
APPPATH/classes/controller/faq.php [ 21 ] » Model_Faq->get_cats()
16 View::set_global('lang_selector_route', array('faq', array())); 17 18 View::set_global('submenu', View::factory('support_submenu')); 19 20 $this->_faq_model = Model::factory('Faq'); 21 $this->_categories = $this->_faq_model->get_cats(); 22 View::set_global('categories', $this->_categories); 23 24 $this->add_to_title(__('Frequently asked questions')); 25 $cat_slug = $this->request->param('slug'); 26
-
{PHP internal call} » Controller_Faq->before()
-
SYSPATH/classes/kohana/request/client/internal.php [ 103 ] » ReflectionMethod->invoke(arguments)
0
object Controller_Faq(14)
{ private _faq_model => object Model_Faq(1)
{ protected _db => object Database_MySQL(6)
private _categories => NULL private _current_cat => NULL public show_slider => bool FALSE public screenshots_opened => bool FALSE public page_title => string(53) "Action! - Game Recorder and Gameplay Capture Software" public site_title => NULL public site_description => string(152) "Try the most advanced game recorder to create professional game recording. Best quality gameplay recording and easy-to-use inter …" public download => NULL public disableHrefLang => bool TRUE public template => object View(2){ protected _connection_id => string(40) "3b5720341cda30f0934ed7cffba10c00bcf1a55a" protected _identifier => string(1) "`" public last_query => NULL protected _instance => string(7) "default" protected _connection => resource(mysql link) protected _config => array(6) ( "type" => string(5) "mysql" "connection" => array(3) ( "hostname" => string(9) "localhost" "database" => string(14) "actionrecorder" "persistent" => bool FALSE ) "table_prefix" => string(0) "" "charset" => string(4) "utf8" "caching" => bool FALSE "profiling" => bool TRUE ) }
}{ protected _file => string(53) "/var/www/actionrecorder/web/action/views/template.php" protected _data => array(5) ( "styles" => array(1) ( 0 => string(25) "jquery.fancybox-1.3.4.css" ) "scripts" => array(3) ( 0 => string(24) "jquery.fancybox-1.3.4.js" 1 => string(16) "jquery.sticky.js" 2 => string(13) "jquery.faq.js" ) "meta" => array(0) "end_body" => string(0) "" "start_body" => string(0) "" ) }
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.1" protected _secure => bool TRUE protected _referrer => NULL protected _route => object Route(6)
public response => object Response(5){ public lang => string(2) "en" protected _callback => NULL protected _uri => string(20) "support/faq(/<slug>)" protected _regex => array(1) ( "slug" => string(2) ".*" ) protected _defaults => array(2) ( "controller" => string(3) "faq" "action" => string(5) "index" ) protected _route_regex => string(35) "#^support/faq(?:/(?P<slug>.*))?$#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.1" }{ }
protected _body => NULL protected _directory => string(0) "" protected _controller => string(3) "faq" protected _action => string(5) "index" protected _uri => string(32) "support/faq/exporting-and-upload" protected _external => bool FALSE protected _params => array(1) ( "slug" => string(20) "exporting-and-upload" ) 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.1" }98 } 99 100 // Create a new instance of the controller 101 $controller = $class->newInstance($request, $request->response() ? $request->response() : $request->create_response()); 102 103 $class->getMethod('before')->invoke($controller); 104 105 // Determine the action to use 106 $action = $request->action(); 107 108 // If the action doesn't exist, it's a 404
-
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.1" protected _secure => bool TRUE protected _referrer => NULL protected _route => object Route(6)
{ public lang => string(2) "en" protected _callback => NULL protected _uri => string(20) "support/faq(/<slug>)" protected _regex => array(1) ( "slug" => string(2) ".*" ) protected _defaults => array(2) ( "controller" => string(3) "faq" "action" => string(5) "index" ) protected _route_regex => string(35) "#^support/faq(?:/(?P<slug>.*))?$#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.1" }{ }
protected _body => NULL protected _directory => string(0) "" protected _controller => string(3) "faq" protected _action => string(5) "index" protected _uri => string(32) "support/faq/exporting-and-upload" protected _external => bool FALSE protected _params => array(1) ( "slug" => string(20) "exporting-and-upload" ) 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 [ 1154 ] » Kohana_Request_Client->execute(arguments)
0
object Request(21)
{ protected _requested_with => NULL protected _method => string(3) "GET" protected _protocol => string(8) "HTTP/1.1" protected _secure => bool TRUE protected _referrer => NULL protected _route => object Route(6)
{ public lang => string(2) "en" protected _callback => NULL protected _uri => string(20) "support/faq(/<slug>)" protected _regex => array(1) ( "slug" => string(2) ".*" ) protected _defaults => array(2) ( "controller" => string(3) "faq" "action" => string(5) "index" ) protected _route_regex => string(35) "#^support/faq(?:/(?P<slug>.*))?$#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.1" }{ }
protected _body => NULL protected _directory => string(0) "" protected _controller => string(3) "faq" protected _action => string(5) "index" protected _uri => string(32) "support/faq/exporting-and-upload" protected _external => bool FALSE protected _params => array(1) ( "slug" => string(20) "exporting-and-upload" ) 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) }1149 throw new Request_Exception('Unable to execute :uri without a Kohana_Request_Client', array( 1150 ':uri' => $this->_uri, 1151 )); 1152 } 1153 1154 return $this->_client->execute($this); 1155 } 1156 1157 /** 1158 * Returns whether this request is the initial request Kohana received. 1159 * Can be used to test for sub requests.
-
DOCROOT/common.php [ 87 ] » Kohana_Request->execute()
82 * If no source is specified, the URI will be automatically detected. 83 */ 84 85 try { 86 echo Request::factory() 87 ->execute() 88 ->send_headers(TRUE) 89 ->body(); 90 } 91 catch (HTTP_Exception_404 $e) 92 {
-
DOCROOT/index.php [ 26 ] » require_once(arguments)
0
string(38) "/var/www/actionrecorder/web/common.php"
21 * 22 * @link http://kohanaframework.org/guide/about.install#system 23 */ 24 $system = 'system'; 25 26 require_once "common.php";