MODPATH/database/classes/database/mysqli.php [ 59 ]
54 catch (Exception $e)
55 {
56 // No connection exists
57 $this->_connection = NULL;
58
59 throw new Database_Exception(':error',
60 array(':error' => $e->getMessage()),
61 $e->getCode());
62 }
63
64 // \xFF is a better delimiter, but the PHP driver uses underscore
-
MODPATH/database/classes/database/mysqli.php [ 157 ] » Database_MySQLi->connect()
152 } 153 154 public function query($type, $sql, $as_object = FALSE, array $params = NULL) 155 { 156 // Make sure the database is connected 157 $this->_connection or $this->connect(); 158 159 if (Kohana::$profiling) 160 { 161 // Benchmark this query for the current instance 162 $benchmark = Profiler::start("Database ({$this->_instance})", $sql);
-
APPPATH/classes/model/configuracoes.php [ 64 ] » Database_MySQLi->query(arguments)
0
integer 2
1
string(914) "CREATE TABLE IF NOT EXISTS CONFIGURACOES ( CON_ID INT (11) unsigned NOT NULL auto_increment, CON_NOME_EM …"
59 CON_EMAIL_CONTATO VARCHAR (250) NOT NULL , 60 CON_ENDERECO TEXT NOT NULL , 61 CON_LATITUDE VARCHAR (250) NULL , 62 CON_LONGITUDE VARCHAR (250) NULL , 63 PRIMARY KEY (CON_ID) 64 )ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1;"); 65 66 parent::__construct($id); 67 } 68 }
-
MODPATH/orm/classes/kohana/orm.php [ 39 ] » Model_Configuracoes->__construct(arguments)
0
NULL
34 */ 35 public static function factory($model, $id = NULL) { 36 // Set class name 37 $model = 'Model_' . ucfirst($model); 38 39 return new $model($id); 40 } 41 42 /** 43 * "Has one" relationships 44 * @var array
-
APPPATH/classes/controller/index.php [ 43 ] » Kohana_ORM::factory(arguments)
0
string(13) "configuracoes"
38 public $cacheController; 39 40 public function before() { 41 parent::before(); 42 43 $this->template->configuracoes = ORM::factory("configuracoes") 44 ->order_by("CON_ID", "DESC") 45 ->find(); 46 47 $this->template->titulo = $this->template->configuracoes->CON_NOME_EMPRESA; 48
-
{PHP internal call} » Controller_Index->before()
-
SYSPATH/classes/kohana/request/client/internal.php [ 104 ] » ReflectionMethod->invoke(arguments)
0
object Controller_Index(12)
{ public template => object View(2)
{ protected _file => string(67) "/home/sites/prefeituramarcelinoramos/application/views/template.php" protected _data => array(0) }
public gravar_logs => bool TRUE public coresEmail => array(3) ( "background" => string(7) "#dcdcdc" "basecolor" => string(7) "#113267" "link" => string(7) "#003385" ) public dominio => string(48) "http://www1.ows.com.br/prefeituramarcelinoramos/" public emailEmpresa => string(14) "sac@ows.com.br" public senhaEmail => string(8) "8Snizn6e" public host => string(14) "smtp.gmail.com" public commerceSession => string(7) "default" public cacheController => NULL public auto_render => bool TRUE public request => object Request(20){ protected _requested_with => NULL protected _method => string(3) "GET" protected _protocol => string(8) "HTTP/1.1" protected _secure => bool FALSE protected _referrer => NULL protected _route => object Route(5)
public response => object Response(5){ protected _callback => NULL protected _uri => string(32) "(<controller>(/<action>(/<id>)))" protected _regex => array(0) protected _defaults => array(2) ( "controller" => string(5) "index" "action" => string(5) "index" ) protected _route_regex => string(95) "#^(?:(?P<controller>[^/.,;?\n]++)(?:/(?P<action>[^/.,;?\n]++)(?:/(?P<id>[^/.,;?\n]++))?)?)?$#uD" }
protected _routes => array(0) 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(5) "index" protected _action => string(5) "index" protected _uri => string(0) "" protected _external => bool FALSE protected _params => array(0) 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 }
}{ 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" }99 } 100 101 // Create a new instance of the controller 102 $controller = $class->newInstance($request, $request->response() ? $request->response() : $request->create_response()); 103 104 $class->getMethod('before')->invoke($controller); 105 106 // Determine the action to use 107 $action = $request->action(); 108 109 // 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(20)
{ protected _requested_with => NULL protected _method => string(3) "GET" protected _protocol => string(8) "HTTP/1.1" protected _secure => bool FALSE protected _referrer => NULL protected _route => object Route(5)
{ protected _callback => NULL protected _uri => string(32) "(<controller>(/<action>(/<id>)))" protected _regex => array(0) protected _defaults => array(2) ( "controller" => string(5) "index" "action" => string(5) "index" ) protected _route_regex => string(95) "#^(?:(?P<controller>[^/.,;?\n]++)(?:/(?P<action>[^/.,;?\n]++)(?:/(?P<id>[^/.,;?\n]++))?)?)?$#uD" }
protected _routes => array(0) 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(5) "index" protected _action => string(5) "index" protected _uri => string(0) "" protected _external => bool FALSE protected _params => array(0) 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 }
}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(20)
{ protected _requested_with => NULL protected _method => string(3) "GET" protected _protocol => string(8) "HTTP/1.1" protected _secure => bool FALSE protected _referrer => NULL protected _route => object Route(5)
{ protected _callback => NULL protected _uri => string(32) "(<controller>(/<action>(/<id>)))" protected _regex => array(0) protected _defaults => array(2) ( "controller" => string(5) "index" "action" => string(5) "index" ) protected _route_regex => string(95) "#^(?:(?P<controller>[^/.,;?\n]++)(?:/(?P<action>[^/.,;?\n]++)(?:/(?P<id>[^/.,;?\n]++))?)?)?$#uD" }
protected _routes => array(0) 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(5) "index" protected _action => string(5) "index" protected _uri => string(0) "" protected _external => bool FALSE protected _params => array(0) 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 }
}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/index.php [ 109 ] » Kohana_Request->execute()
104 /** 105 * Execute the main request. A source of the URI can be passed, eg: $_SERVER['PATH_INFO']. 106 * If no source is specified, the URI will be automatically detected. 107 */ 108 echo Request::factory() 109 ->execute() 110 ->send_headers(TRUE) 111 ->body();