MODPATH/database/classes/Kohana/Database/MySQL.php [ 194 ]
189 {
190 // This benchmark is worthless
191 Profiler::delete($benchmark);
192 }
193
194 throw new Database_Exception(':error [ :query ]',
195 array(':error' => mysql_error($this->_connection), ':query' => $sql),
196 mysql_errno($this->_connection));
197 }
198
199 if (isset($benchmark))
-
MODPATH/database/classes/Kohana/Database/Query.php [ 251 ] » Kohana_Database_MySQL->query(arguments)
0
integer 1
1
string(382) "SELECT `dropbox`.`id` AS `id`, `dropbox`.`lang_id` AS `lang_id`, `dropbox`.`site_id` AS `site_id`, `dropbox`.`page_id` AS `page_ …"
2
bool FALSE
3
array(0)
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 [ 957 ] » Kohana_Database_Query->execute(arguments)
0
object Database_MySQL(6)
{ protected _connection_id => string(40) "a4752dbfef1173b05def615ea5d310cd0693786b" protected _identifier => string(1) "`" public last_query => string(33) "SHOW FULL COLUMNS FROM `dropboxs`" protected _instance => string(7) "default" protected _connection => resource(mysql link) protected _config => array(5) ( "type" => string(5) "MySQL" "connection" => array(3) ( "hostname" => string(13) "45.181.173.24" "database" => string(10) "lasalle_db" "persistent" => bool FALSE ) "table_prefix" => string(0) "" "charset" => string(4) "utf8" "caching" => bool FALSE ) }
952 $this->reset(); 953 954 return $result; 955 } else { 956 // Load the result as an associative array 957 $result = $this->_db_builder->as_assoc()->execute($this->_db); 958 959 $this->reset(); 960 961 if ($result->count() === 1) { 962 // Load object values
-
MODPATH/orm/classes/Kohana/ORM.php [ 877 ] » Kohana_ORM->_load_result(arguments)
0
bool FALSE
872 } 873 } 874 875 $this->_build(Database::SELECT); 876 877 return $this->_load_result(FALSE); 878 } 879 880 /** 881 * Finds multiple database rows and returns an iterator of the rows found. 882 *
-
APPPATH/classes/Controller/Core/Application.php [ 53 ] » Kohana_ORM->find()
48 $dropbox_obj->where('action', '=', Request::current()->action()); 49 } 50 $dropbox_obj->and_where('controllers.name', '=', Request::current()->controller()); 51 } 52 53 $dropbox_obj = $dropbox_obj->find(); 54 55 if(!is_null($dropbox_obj)) { 56 $dropbox_itens = $dropbox_obj->itens->find_all(); 57 View::set_global('dropbox_obj', $dropbox_obj); 58 View::set_global('dropbox_itens', $dropbox_itens);
-
SYSPATH/classes/Kohana/Controller.php [ 69 ] » Controller_Core_Application->before()
64 * @return Response 65 */ 66 public function execute() 67 { 68 // Execute the "before action" method 69 $this->before(); 70 71 // Determine the action to use 72 $action = 'action_'.$this->request->action(); 73 74 // If the action doesn't exist, it's a 404
-
{PHP internal call} » Kohana_Controller->execute()
-
SYSPATH/classes/Kohana/Request/Client/Internal.php [ 97 ] » ReflectionMethod->invoke(arguments)
0
object Controller_BasicEducation_AboutTheSchool(12)
{ public template => object View(2)
{ protected _file => string(51) "/www/application/views/templates/basiceducation.php" protected _data => array(0) }
public benchmark => NULL public context_id => NULL public context_slug => NULL public context_lang => NULL public context_lang_id => NULL public configuration => NULL public context_template_folder => NULL public context_langs => NULL 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(60) "http://lasalle.edu.br/sapucaia/sobre-o-colegio/noticias/tag/" protected _route => object Route(5)
public response => object Response(5){ protected _filters => array(1) ( 0 => object Closure(1)
protected _routes => array(0) protected _header => object HTTP_Header(0){ public 0 => object Closure(1) { *RECURSION* } }
) protected _uri => string(32) "(<controller>(/<action>(/<id>)))" protected _regex => array(1) ( "id" => string(2) ".+" ) protected _defaults => array(3) ( "directory" => string(13) "institutional" "controller" => string(4) "home" "action" => string(5) "index" ) protected _route_regex => string(85) "#^(?:(?P<controller>[^/.,;?\n]++)(?:/(?P<action>[^/.,;?\n]++)(?:/(?P<id>.+))?)?)?$#uD" }{ }
protected _body => NULL protected _directory => string(14) "BasicEducation" protected _controller => string(14) "AboutTheSchool" protected _action => string(4) "news" protected _uri => string(23) "aboutTheSchool/news/tag" protected _external => bool FALSE protected _params => array(1) ( "id" => string(3) "tag" ) 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 => NULL }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(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(60) "http://lasalle.edu.br/sapucaia/sobre-o-colegio/noticias/tag/" protected _route => object Route(5)
{ protected _filters => array(1) ( 0 => object Closure(1)
protected _routes => array(0) protected _header => object HTTP_Header(0){ public 0 => object Closure(1) { *RECURSION* } }
) protected _uri => string(32) "(<controller>(/<action>(/<id>)))" protected _regex => array(1) ( "id" => string(2) ".+" ) protected _defaults => array(3) ( "directory" => string(13) "institutional" "controller" => string(4) "home" "action" => string(5) "index" ) protected _route_regex => string(85) "#^(?:(?P<controller>[^/.,;?\n]++)(?:/(?P<action>[^/.,;?\n]++)(?:/(?P<id>.+))?)?)?$#uD" }{ }
protected _body => NULL protected _directory => string(14) "BasicEducation" protected _controller => string(14) "AboutTheSchool" protected _action => string(4) "news" protected _uri => string(23) "aboutTheSchool/news/tag" protected _external => bool FALSE protected _params => array(1) ( "id" => string(3) "tag" ) 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 => NULL }109 $orig_response = $response = Response::factory(); 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 [ 990 ] » 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(60) "http://lasalle.edu.br/sapucaia/sobre-o-colegio/noticias/tag/" protected _route => object Route(5)
{ protected _filters => array(1) ( 0 => object Closure(1)
protected _routes => array(0) protected _header => object HTTP_Header(0){ public 0 => object Closure(1) { *RECURSION* } }
) protected _uri => string(32) "(<controller>(/<action>(/<id>)))" protected _regex => array(1) ( "id" => string(2) ".+" ) protected _defaults => array(3) ( "directory" => string(13) "institutional" "controller" => string(4) "home" "action" => string(5) "index" ) protected _route_regex => string(85) "#^(?:(?P<controller>[^/.,;?\n]++)(?:/(?P<action>[^/.,;?\n]++)(?:/(?P<id>.+))?)?)?$#uD" }{ }
protected _body => NULL protected _directory => string(14) "BasicEducation" protected _controller => string(14) "AboutTheSchool" protected _action => string(4) "news" protected _uri => string(23) "aboutTheSchool/news/tag" protected _external => bool FALSE protected _params => array(1) ( "id" => string(3) "tag" ) 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) }
}985 throw new Request_Exception('Unable to execute :uri without a Kohana_Request_Client', array( 986 ':uri' => $this->_uri, 987 )); 988 } 989 990 return $this->_client->execute($this); 991 } 992 993 /** 994 * Returns whether this request is the initial request Kohana received. 995 * 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 }