APPPATH/classes/controller/imovel.php [ 14 ]
9 $row->where('id', '=', $this->request->param('id'))
10 ->where('ativo', '=', 1)
11 ->find();
12
13 if (!$row->loaded())
14 throw new HTTP_Exception_404('Imóvel não disponível no momento.');
15
16 // SEO - atualiza title do link se alterado no cadastro
17 if ($this->request->uri() !== $row->get_uri())
18 $this->request->redirect($row->get_uri(), 301);
19
-
{PHP internal call} » Controller_Imovel->action_index()
-
SYSPATH/classes/kohana/request/client/internal.php [ 115 ] » ReflectionMethod->invoke(arguments)
0
object Controller_Imovel(5)
{ public template => object View(2)
{ protected _file => string(49) "/home/navaimoveis/www/application/views/index.php" protected _data => array(8) ( "title" => string(71) "Imobiliária em Castro - Apartamentos, casas e terrenos - Nava Imóveis" "is_home" => bool FALSE "menu" => string(7) "Inicial" "subtitle" => string(0) "" "ops" => bool FALSE "show_left" => bool TRUE "breadcrumb" => array(1) ( "" => string(7) "Inicial" ) "banners" => object Database_MySQL_Result(7)
public title => string(71) "Imobiliária em Castro - Apartamentos, casas e terrenos - Nava Imóveis" public auto_render => bool TRUE public request => object Request(20){ protected _internal_row => integer 0 protected _query => string(83) "SELECT `banner`.* FROM `banners` AS `banner` WHERE `ativo` = '1' ORDER BY `id` DESC" protected _result => resource(mysql result) protected _total_rows => integer 2 protected _current_row => integer 0 protected _as_object => string(12) "Model_Banner" protected _object_params => NULL }
) }{ 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(61) "<tipo>/<negociacao>/<cidade>/<bairro>/<endereco>/<title>,<id>" protected _regex => array(7) ( "tipo" => string(8) "[\w\d-]+" "negociacao" => string(8) "[\w\d-]+" "cidade" => string(8) "[\w\d-]+" "bairro" => string(8) "[\w\d-]+" "endereco" => string(8) "[\w\d-]+" "title" => string(8) "[\w\d-]+" "id" => string(7) "[0-9]++" ) protected _defaults => array(2) ( "controller" => string(6) "imovel" "action" => string(5) "index" ) protected _route_regex => string(150) "#^(?P<tipo>[\w\d-]+)/(?P<negociacao>[\w\d-]+)/(?P<cidade>[\w\d-]+)/(?P<bairro>[\w\d-]+)/(?P<endereco>[\w\d-]+)/(?P<title>[\w\d-] …" }
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(6) "imovel" protected _action => string(5) "index" protected _uri => string(78) "terreno/venda/castro/santa-terezinha/rua-bento-munhoz-da-rocha-neto/terreno,83" protected _external => bool FALSE protected _params => array(7) ( "tipo" => string(7) "terreno" "negociacao" => string(5) "venda" "cidade" => string(6) "castro" "bairro" => string(15) "santa-terezinha" "endereco" => string(30) "rua-bento-munhoz-da-rocha-neto" "title" => string(7) "terreno" "id" => string(2) "83" ) 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" }110 { 111 throw new HTTP_Exception_404('The requested URL :uri was not found on this server.', array(':uri' => $request->uri())); 112 } 113 114 $method = $class->getMethod('action_'.$action); 115 $method->invoke($controller); 116 117 // Execute the "after action" method 118 $class->getMethod('after')->invoke($controller); 119 } 120 catch (Exception $e)
-
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(61) "<tipo>/<negociacao>/<cidade>/<bairro>/<endereco>/<title>,<id>" protected _regex => array(7) ( "tipo" => string(8) "[\w\d-]+" "negociacao" => string(8) "[\w\d-]+" "cidade" => string(8) "[\w\d-]+" "bairro" => string(8) "[\w\d-]+" "endereco" => string(8) "[\w\d-]+" "title" => string(8) "[\w\d-]+" "id" => string(7) "[0-9]++" ) protected _defaults => array(2) ( "controller" => string(6) "imovel" "action" => string(5) "index" ) protected _route_regex => string(150) "#^(?P<tipo>[\w\d-]+)/(?P<negociacao>[\w\d-]+)/(?P<cidade>[\w\d-]+)/(?P<bairro>[\w\d-]+)/(?P<endereco>[\w\d-]+)/(?P<title>[\w\d-] …" }
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(6) "imovel" protected _action => string(5) "index" protected _uri => string(78) "terreno/venda/castro/santa-terezinha/rua-bento-munhoz-da-rocha-neto/terreno,83" protected _external => bool FALSE protected _params => array(7) ( "tipo" => string(7) "terreno" "negociacao" => string(5) "venda" "cidade" => string(6) "castro" "bairro" => string(15) "santa-terezinha" "endereco" => string(30) "rua-bento-munhoz-da-rocha-neto" "title" => string(7) "terreno" "id" => string(2) "83" ) 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(61) "<tipo>/<negociacao>/<cidade>/<bairro>/<endereco>/<title>,<id>" protected _regex => array(7) ( "tipo" => string(8) "[\w\d-]+" "negociacao" => string(8) "[\w\d-]+" "cidade" => string(8) "[\w\d-]+" "bairro" => string(8) "[\w\d-]+" "endereco" => string(8) "[\w\d-]+" "title" => string(8) "[\w\d-]+" "id" => string(7) "[0-9]++" ) protected _defaults => array(2) ( "controller" => string(6) "imovel" "action" => string(5) "index" ) protected _route_regex => string(150) "#^(?P<tipo>[\w\d-]+)/(?P<negociacao>[\w\d-]+)/(?P<cidade>[\w\d-]+)/(?P<bairro>[\w\d-]+)/(?P<endereco>[\w\d-]+)/(?P<title>[\w\d-] …" }
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(6) "imovel" protected _action => string(5) "index" protected _uri => string(78) "terreno/venda/castro/santa-terezinha/rua-bento-munhoz-da-rocha-neto/terreno,83" protected _external => bool FALSE protected _params => array(7) ( "tipo" => string(7) "terreno" "negociacao" => string(5) "venda" "cidade" => string(6) "castro" "bairro" => string(15) "santa-terezinha" "endereco" => string(30) "rua-bento-munhoz-da-rocha-neto" "title" => string(7) "terreno" "id" => string(2) "83" ) 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.
-
MODPATH/mosite-base/classes/request.php [ 25 ] » Kohana_Request->execute()
20 throw new HTTP_Exception_404('This is not internal request'); 21 } 22 $this->is_initial() 23 OR $this->action('internal_' . $this->action()); 24 25 return parent::execute(); 26 } 27 28 }
-
DOCROOT/index.php [ 111 ] » Request->execute()
106 /** 107 * Execute the main request. 108 * A source of the URI can be passed, eg: $_SERVER['PATH_INFO']. 109 * If no source is specified, the URI will be automatically detected. 110 */ 111 echo Request::factory()->execute()->send_headers(TRUE)->body(); 112 113 if (isset($_GET['profiler']) and Kohana::$profiling) { 114 echo View::factory('profiler/stats'); 115 }