APPPATH/classes/controller/modelos.php [ 155 ]
150 $dataGama = Model_Database::factory('Modelos')->detalhefromGama($this->request->param('gama'));
151 $dataGaleria = Model_Database::factory('Modelos')->imagensFromGama($dataGama['id']);
152
153 $dataGama['modelo_slug'] = $dataModelo['slug'];
154
155 $this->_setTitles($dataGama['titulo']);
156 $this->_setTitles('Galeria');
157 $this->_checkMultimedia($this->request->param('id'));
158
159 $this->pageContent->set('dataGama', $dataGama)
160 ->set('dataGaleria',$dataGaleria);
-
APPPATH/classes/controller/modelos.php [ 155 ] » 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 155
4
array(3) ( "dataModelo" => bool FALSE "dataGama" => array(1) ( "modelo_slug" => NULL ) "dataGaleria" => object Database_MySQL_Result(7)
{ protected _internal_row => integer 0 protected _query => string(77) "SELECT `titulo`, `ficheiro` FROM `multimedia_imagens` WHERE `gama_id` IS NULL" protected _result => resource(mysql result) protected _total_rows => integer 0 protected _current_row => integer 0 protected _as_object => bool FALSE protected _object_params => NULL }
)150 $dataGama = Model_Database::factory('Modelos')->detalhefromGama($this->request->param('gama')); 151 $dataGaleria = Model_Database::factory('Modelos')->imagensFromGama($dataGama['id']); 152 153 $dataGama['modelo_slug'] = $dataModelo['slug']; 154 155 $this->_setTitles($dataGama['titulo']); 156 $this->_setTitles('Galeria'); 157 $this->_checkMultimedia($this->request->param('id')); 158 159 $this->pageContent->set('dataGama', $dataGama) 160 ->set('dataGaleria',$dataGaleria);
-
{PHP internal call} » Controller_Modelos->action_galeria()
-
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(67) "/home2/tecline/public_tecauto/application/views/modelos/galeria.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(67) "/home2/tecline/public_tecauto/application/views/modelos/galeria.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(30) "<tipo>/<modelo>/<gama>/galeria" protected _regex => array(1) ( "tipo" => string(21) "(ligeiros|comerciais)" ) protected _defaults => array(2) ( "controller" => string(7) "modelos" "action" => string(7) "galeria" ) protected _route_regex => string(93) "#^(?P<tipo>(ligeiros|comerciais))/(?P<modelo>[^/.,;?\n]++)/(?P<gama>[^/.,;?\n]++)/galeria$#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(7) "galeria" protected _uri => string(38) "comerciais/multivan_/multivan_/galeria" protected _external => bool FALSE protected _params => array(3) ( "tipo" => string(10) "comerciais" "modelo" => string(9) "multivan_" "gama" => string(9) "multivan_" ) 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(30) "<tipo>/<modelo>/<gama>/galeria" protected _regex => array(1) ( "tipo" => string(21) "(ligeiros|comerciais)" ) protected _defaults => array(2) ( "controller" => string(7) "modelos" "action" => string(7) "galeria" ) protected _route_regex => string(93) "#^(?P<tipo>(ligeiros|comerciais))/(?P<modelo>[^/.,;?\n]++)/(?P<gama>[^/.,;?\n]++)/galeria$#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(7) "galeria" protected _uri => string(38) "comerciais/multivan_/multivan_/galeria" protected _external => bool FALSE protected _params => array(3) ( "tipo" => string(10) "comerciais" "modelo" => string(9) "multivan_" "gama" => string(9) "multivan_" ) 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(30) "<tipo>/<modelo>/<gama>/galeria" protected _regex => array(1) ( "tipo" => string(21) "(ligeiros|comerciais)" ) protected _defaults => array(2) ( "controller" => string(7) "modelos" "action" => string(7) "galeria" ) protected _route_regex => string(93) "#^(?P<tipo>(ligeiros|comerciais))/(?P<modelo>[^/.,;?\n]++)/(?P<gama>[^/.,;?\n]++)/galeria$#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(7) "galeria" protected _uri => string(38) "comerciais/multivan_/multivan_/galeria" protected _external => bool FALSE protected _params => array(3) ( "tipo" => string(10) "comerciais" "modelo" => string(9) "multivan_" "gama" => string(9) "multivan_" ) 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();