APPPATH/classes/controller/modelos.php [ 131 ]
126 $dataGama = Model_Database::factory('Modelos')->detalhefromGama($this->request->param('gama'));
127 $dataVersao = Model_Database::factory('Modelos')->detalheFromVersao($this->request->param('id'));
128
129 $dataGama['modelo_slug'] = $dataModelo['slug'];
130
131 $this->_setTitles($dataGama['titulo']);
132 $this->_setTitles($dataVersao['titulo']);
133 $this->_checkMultimedia($this->request->param('id'));
134
135 $this->pageContent->set('dataGama', $dataGama)
136 ->set('dataVersao',$dataVersao);
-
APPPATH/classes/controller/modelos.php [ 131 ] » Kohana_Core::error_handler(arguments)
0
integer 8
1
string(23) "Undefined index: titulo"
2
string(72) "/home2/tecline/public_tecauto/application/classes/controller/modelos.php"
3
integer 131
4
array(3) ( "dataModelo" => bool FALSE "dataGama" => array(1) ( "modelo_slug" => NULL ) "dataVersao" => array(12) ( "id" => string(3) "124" "gama_id" => string(1) "9" "titulo" => string(7) "Sport |" "titulo_menu" => string(7) "Sport |" "descricao" => string(349) "<p><strong>Principais características:</strong></p> <p>| Jantes em liga leve "Lisboa" de 18"</p> <p>| Pacote "Espelhos Exterio …" "imagem1" => string(48) "/ficheiros/automoveis-paginas/scirocco_sport.jpg" "imagem2" => string(0) "" "imagem3" => string(0) "" "imagem4" => string(0) "" "imagem5" => string(0) "" "ordem" => string(3) "750" "publicado" => string(1) "1" ) )
126 $dataGama = Model_Database::factory('Modelos')->detalhefromGama($this->request->param('gama')); 127 $dataVersao = Model_Database::factory('Modelos')->detalheFromVersao($this->request->param('id')); 128 129 $dataGama['modelo_slug'] = $dataModelo['slug']; 130 131 $this->_setTitles($dataGama['titulo']); 132 $this->_setTitles($dataVersao['titulo']); 133 $this->_checkMultimedia($this->request->param('id')); 134 135 $this->pageContent->set('dataGama', $dataGama) 136 ->set('dataVersao',$dataVersao);
-
{PHP internal call} » Controller_Modelos->action_versao()
-
SYSPATH/classes/kohana/request/client/internal.php [ 118 ] » ReflectionMethod->invoke(arguments)
0
object Controller_Modelos(16)
{ public banner_top => bool FALSE public banner_bottom => bool FALSE public slideshow => bool FALSE private _multimedia => bool FALSE public template => object View(2)
{ protected _file => string(69) "/home2/tecline/public_tecauto/application/views/template/template.php" protected _data => array(3) ( "pageContent" => object View(2)
public assets => object Assets(2){ protected _file => string(66) "/home2/tecline/public_tecauto/application/views/modelos/versao.php" protected _data => array(0) }
"dataModelosLigeiros" => object Database_MySQL_Result(7){ protected _internal_row => integer 0 protected _query => string(118) "SELECT `titulo`, `slug` FROM `automovel_modelos` WHERE `publicado` = '1' AND `tipo` = 'ligeiros' ORDER BY `ordem` DESC" protected _result => resource(mysql result) protected _total_rows => integer 12 protected _current_row => integer 0 protected _as_object => bool FALSE protected _object_params => NULL }
"dataModelosComerciais" => object Database_MySQL_Result(7){ protected _internal_row => integer 0 protected _query => string(120) "SELECT `titulo`, `slug` FROM `automovel_modelos` WHERE `publicado` = '1' AND `tipo` = 'comerciais' ORDER BY `ordem` DESC" protected _result => resource(mysql result) protected _total_rows => integer 9 protected _current_row => integer 0 protected _as_object => bool FALSE protected _object_params => NULL }
) }{ protected _requested => array(1) ( "base" => string(4) "base" ) protected _config => object Config_Group(1)
public pageArea => NULL public pageHeader => string(15) "template/header" public pageMenu => NULL public pageContent => object View(2){ public base => array(6) ( 0 => array(3) ( 0 => string(5) "style" 1 => string(20) "assets/css/reset.css" 2 => string(4) "head" ) 1 => array(4) ( 0 => string(5) "style" 1 => string(20) "assets/css/style.css" 2 => string(4) "head" 3 => integer 10 ) 2 => array(4) ( 0 => string(5) "style" 1 => string(25) "assets/css/flexslider.css" 2 => string(4) "head" 3 => integer 20 ) 3 => array(4) ( 0 => string(6) "script" 1 => string(27) "assets/js/prefixfree.min.js" 2 => string(4) "head" 3 => integer 30 ) 4 => array(3) ( 0 => string(6) "script" 1 => string(53) "/ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js" 2 => string(4) "body" ) 5 => array(4) ( 0 => string(6) "script" 1 => string(17) "assets/js/base.js" 2 => string(4) "body" 3 => integer 10 ) ) }
}{ protected _file => string(66) "/home2/tecline/public_tecauto/application/views/modelos/versao.php" protected _data => array(0) }
public pageFooter => string(15) "template/footer" public contentMenu => NULL public pageMetaDescription => 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.0" protected _secure => bool FALSE protected _referrer => NULL protected _route => object Route(5)
public response => object Response(5){ protected _callback => NULL protected _uri => string(34) "<tipo>/<modelo>/<gama>/versao/<id>" protected _regex => array(1) ( "tipo" => string(21) "(ligeiros|comerciais)" ) protected _defaults => array(2) ( "controller" => string(7) "modelos" "action" => string(6) "versao" ) protected _route_regex => string(113) "#^(?P<tipo>(ligeiros|comerciais))/(?P<modelo>[^/.,;?\n]++)/(?P<gama>[^/.,;?\n]++)/versao/(?P<id>[^/.,;?\n]++)$#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.0" }{ }
protected _body => NULL protected _directory => string(0) "" protected _controller => string(7) "modelos" protected _action => string(6) "versao" protected _uri => string(37) "ligeiros/scirocco/scirocco/versao/124" protected _external => bool FALSE protected _params => array(4) ( "tipo" => string(8) "ligeiros" "modelo" => string(8) "scirocco" "gama" => string(8) "scirocco" "id" => string(3) "124" ) 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.0" }113 throw new HTTP_Exception_404('The requested URL :uri was not found on this server.', 114 array(':uri' => $request->uri())); 115 } 116 117 $method = $class->getMethod('action_'.$action); 118 $method->invoke($controller); 119 120 // Execute the "after action" method 121 $class->getMethod('after')->invoke($controller); 122 } 123 catch (Exception $e)
-
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.0" protected _secure => bool FALSE protected _referrer => NULL protected _route => object Route(5)
{ protected _callback => NULL protected _uri => string(34) "<tipo>/<modelo>/<gama>/versao/<id>" protected _regex => array(1) ( "tipo" => string(21) "(ligeiros|comerciais)" ) protected _defaults => array(2) ( "controller" => string(7) "modelos" "action" => string(6) "versao" ) protected _route_regex => string(113) "#^(?P<tipo>(ligeiros|comerciais))/(?P<modelo>[^/.,;?\n]++)/(?P<gama>[^/.,;?\n]++)/versao/(?P<id>[^/.,;?\n]++)$#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.0" }{ }
protected _body => NULL protected _directory => string(0) "" protected _controller => string(7) "modelos" protected _action => string(6) "versao" protected _uri => string(37) "ligeiros/scirocco/scirocco/versao/124" protected _external => bool FALSE protected _params => array(4) ( "tipo" => string(8) "ligeiros" "modelo" => string(8) "scirocco" "gama" => string(8) "scirocco" "id" => string(3) "124" ) 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 [ 1138 ] » Kohana_Request_Client->execute(arguments)
0
object Request(21)
{ protected _requested_with => NULL protected _method => string(3) "GET" protected _protocol => string(8) "HTTP/1.0" protected _secure => bool FALSE protected _referrer => NULL protected _route => object Route(5)
{ protected _callback => NULL protected _uri => string(34) "<tipo>/<modelo>/<gama>/versao/<id>" protected _regex => array(1) ( "tipo" => string(21) "(ligeiros|comerciais)" ) protected _defaults => array(2) ( "controller" => string(7) "modelos" "action" => string(6) "versao" ) protected _route_regex => string(113) "#^(?P<tipo>(ligeiros|comerciais))/(?P<modelo>[^/.,;?\n]++)/(?P<gama>[^/.,;?\n]++)/versao/(?P<id>[^/.,;?\n]++)$#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.0" }{ }
protected _body => NULL protected _directory => string(0) "" protected _controller => string(7) "modelos" protected _action => string(6) "versao" protected _uri => string(37) "ligeiros/scirocco/scirocco/versao/124" protected _external => bool FALSE protected _params => array(4) ( "tipo" => string(8) "ligeiros" "modelo" => string(8) "scirocco" "gama" => string(8) "scirocco" "id" => string(3) "124" ) 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) }1133 throw new Request_Exception('Unable to execute :uri without a Kohana_Request_Client', array( 1134 ':uri' => $this->_uri, 1135 )); 1136 } 1137 1138 return $this->_client->execute($this); 1139 } 1140 1141 /** 1142 * Returns whether this request is the initial request Kohana received. 1143 * Can be used to test for sub requests.
-
DOCROOT/index.php [ 103 ] » Kohana_Request->execute()
98 /** 99 * Execute the main request. A source of the URI can be passed, eg: $_SERVER['PATH_INFO']. 100 * If no source is specified, the URI will be automatically detected. 101 */ 102 echo Request::factory() 103 ->execute() 104 ->send_headers() 105 ->body();