MODPATH/mysqli/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 [ 251 ] » Database_MySQLi->query()
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);
-
MODPATH/orm/classes/Kohana/ORM.php [ 1072 ] » Kohana_Database_Query->execute()
1067 return $result; 1068 } 1069 else 1070 { 1071 // Load the result as an associative array 1072 $result = $this->_db_builder->as_assoc()->execute($this->_db); 1073 1074 $this->reset(); 1075 1076 if ($result->count() === 1) 1077 {
-
MODPATH/orm/classes/Kohana/ORM.php [ 979 ] » Kohana_ORM->_load_result()
974 } 975 } 976 977 $this->_build(Database::SELECT); 978 979 return $this->_load_result(FALSE); 980 } 981 982 /** 983 * Finds multiple database rows and returns an iterator of the rows found. 984 *
-
APPPATH/classes/Controller/Article.php [ 78 ] » Kohana_ORM->find()
73 } 74 if(is_numeric($id)) 75 { 76 $article = ORM::factory('Article', $id); 77 } else { 78 $article = ORM::factory('Article')->where('old_slug', '=', $this->request->uri())->find(); 79 } 80 if(!$article->loaded()) 81 { 82 throw HTTP_Exception::factory(404, 'The requested URL:<br /><strong>'.URL::base().':uri</strong><br /> was not found on this server.', array( 83 ':uri' => $this->request->uri(),
-
SYSPATH/classes/Kohana/Controller.php [ 84 ] » Controller_Article->action_index()
79 array(':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 [ 97 ] » ReflectionMethod->invoke()
92 93 // Create a new instance of the controller 94 $controller = $class->newInstance($request, $response); 95 96 // Run the controller's execute() method 97 $response = $class->getMethod('execute')->invoke($controller); 98 99 if ( ! $response instanceof Response) 100 { 101 // Controller failed to return a Response. 102 throw new Kohana_Exception('Controller failed to return a Response');
-
SYSPATH/classes/Kohana/Request/Client.php [ 114 ] » Kohana_Request_Client_Internal->execute_request()
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 callbacks 117 foreach ($this->header_callbacks() as $header => $callback) 118 { 119 if ($response->headers($header))
-
SYSPATH/classes/Kohana/Request.php [ 986 ] » Kohana_Request_Client->execute()
981 throw new Request_Exception('Unable to execute :uri without a Kohana_Request_Client', array( 982 ':uri' => $this->_uri, 983 )); 984 } 985 986 return $this->_client->execute($this); 987 } 988 989 /** 990 * Returns whether this request is the initial request Kohana received. 991 * Can be used to test for sub requests.
-
DOCROOT/index.php [ 114 ] » Kohana_Request->execute()
109 /** 110 * Execute the main request. A source of the URI can be passed, eg: $_SERVER['PATH_INFO']. 111 * If no source is specified, the URI will be automatically detected. 112 */ 113 echo Request::factory(TRUE, array(), FALSE) 114 ->execute() 115 ->send_headers(TRUE) 116 ->body(); 117