APPPATH/classes/Controller/Contacts.php [ 22 ]
17 } else {
18 $this->context->city = Model_City::loadByAlias($cityAlias);
19
20 if($id) {
21 $this->context->station = Model_Station::load($id);
22 $phones = explode(';', $this->context->station->phones);
23 if(count($phones)>3) {
24 $this->context->phones_title = implode('<br>', $phones);
25 $phones = [$phones[0],$phones[1],$phones[2]];
26 }
27 else {
-
APPPATH/classes/Controller/Contacts.php [ 22 ] » Kohana_Core::error_handler(arguments)
0
integer 8
1
string(36) "Trying to get property of non-object"
2
string(62) "/var/www/av74/root/application/classes/Controller/Contacts.php"
3
integer 22
4
array(3) ( "cityAlias" => string(12) "magnitogorsk" "id" => string(2) "17" "uploadDir" => string(31) "/var/www/av74/root/var/uploads/" )
17 } else { 18 $this->context->city = Model_City::loadByAlias($cityAlias); 19 20 if($id) { 21 $this->context->station = Model_Station::load($id); 22 $phones = explode(';', $this->context->station->phones); 23 if(count($phones)>3) { 24 $this->context->phones_title = implode('<br>', $phones); 25 $phones = [$phones[0],$phones[1],$phones[2]]; 26 } 27 else {
-
SYSPATH/classes/Kohana/Controller.php [ 84 ] » Controller_Contacts->action_index()
79 array(':uri' => $this->request->uri()) 80 )->request($this->request); 81 } 82 83 // Execute the action itself 84 $this->{$action}(); 85 86 // Execute the "after action" method 87 $this->after(); 88 89 // Return the response
-
{PHP internal call} » Kohana_Controller->execute()
-
SYSPATH/classes/Kohana/Request/Client/Internal.php [ 97 ] » ReflectionMethod->invoke(arguments)
0
object Controller_Contacts(12)
{ public currentPath => string(0) "" public accessLevel => integer 101 public currentRole => integer 0 public accessGranted => NULL public base => string(15) "http://av74.ru/" public currentUser => NULL public auto_render => bool TRUE public template_name => NULL public globals => object stdClass(0)
{ }
public context => object stdClass(14){ public action => string(5) "index" public param => array(2) ( "depot" => string(12) "magnitogorsk" "id" => string(2) "17" ) public currentPath => string(25) "/contacts/magnitogorsk/17" public is_admin => bool FALSE public is_agent => bool FALSE public user => NULL public uploadDir => string(13) "/var/uploads/" public page => integer 0 public content => bool FALSE public headerInfo => array(6) ( "id" => string(1) "3" "url" => string(11) "header-info" "content" => string(334) "<p><strong>Для Вашего удобства - покупка билета на нашем сайте равна стоимости билета в кассах автовокзала.</strong><br /> …" "title" => NULL "created" => string(26) "2016-05-29 15:49:16.517013" "deleted" => NULL ) public footerInfo => array(6) ( "id" => string(1) "4" "url" => string(11) "footer-info" "content" => string(35) "<p>© RUCOMPLEX, 2016-2017</p> " "title" => NULL "created" => string(26) "2016-05-29 16:03:08.674453" "deleted" => NULL ) public lastNews => array(6) ( 0 => array(7) ( "id" => string(2) "55" "created" => string(26) "2023-12-21 11:07:00.927632" "title" => string(132) "Внимание! На сайте имеются проблемы при оплате через Сберпэй и Альфапэй." "content" => string(628) "<p>На сайте имеются проблемы при оплате билетов через Сберпэй и Альфапэй. </p> <p>Убедительная просьба проводить оплату ба …" "img" => NULL "deleted" => NULL "date" => string(19) "2023-12-21 11:05:51" ) 1 => array(7) ( "id" => string(2) "54" "created" => string(25) "2023-12-08 11:29:02.12285" "title" => string(83) "Внимание! Отмены рейсов по погодным условиям." "content" => string(515) "<p>В связи с неблагоприятными погодными условиями (сильный мороз с минимальной температурой -40° и ниже) много рейсов в разн …" "img" => NULL "deleted" => NULL "date" => string(19) "2023-12-08 11:19:29" ) 2 => array(7) ( "id" => string(2) "53" "created" => string(26) "2023-11-29 14:31:20.071923" "title" => string(112) "Внимание! На сайте имеются проблемы при оплате через Сберпэй." "content" => string(540) "<p>На сайте имеются проблемы при оплате билетов через Сберпэй. </p> <p>Убедительная просьба проводить оплату банковской&nb …" "img" => NULL "deleted" => NULL "date" => string(19) "2023-11-29 14:30:04" ) 3 => array(7) ( "id" => string(2) "52" "created" => string(26) "2023-06-14 14:24:26.292677" "title" => string(55) "Сбои при оплате через Сберпэй!" "content" => string(540) "<p>На сайте имеются проблемы при оплате билетов через Сберпэй. </p> <p>Убедительная просьба проводить оплату банковской&nb …" "img" => NULL "deleted" => NULL "date" => string(19) "2023-08-31 00:00:00" ) 4 => array(7) ( "id" => string(2) "51" "created" => string(26) "2023-04-24 09:33:51.307644" "title" => string(63) "Проблемы при оплате через Сберпэй!" "content" => string(378) "<p>На сайте имеются проблемы при оплате билетов через Сберпэй. </p> <p>Убедительная просьба проводить оплату банковской&nb …" "img" => NULL "deleted" => NULL "date" => string(19) "2023-06-14 00:00:00" ) 5 => array(7) ( "id" => string(2) "50" "created" => string(25) "2023-04-05 10:20:32.95639" "title" => string(102) "Увеличение рейсов по маршруту Магнитогорск - Челябинск." "content" => string(3283) "<p> …" "img" => NULL "deleted" => NULL "date" => string(19) "2023-04-05 10:03:06" ) ) public city => object Model_City(4)
public request => object Request(19){ public alias => string(12) "magnitogorsk" public name => string(28) "г. Магнитогорск" public img => string(21) "city_magnitogorsk.png" public id => string(1) "5" }
public station => NULL }{ 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 _filters => array(0) protected _uri => string(25) "contacts(/<depot>(/<id>))" protected _regex => array(1) ( "depot" => string(6) "[a-z]*" ) protected _defaults => array(2) ( "controller" => string(8) "contacts" "action" => string(5) "index" ) protected _route_regex => string(63) "#^contacts(?:/(?P<depot>[a-z]*)(?:/(?P<id>[^/.,;?\n]++))?)?$#uD" }
protected _routes => array(0) protected _header => object HTTP_Header(0){ }
protected _body => NULL protected _directory => string(0) "" protected _controller => string(8) "Contacts" protected _action => string(5) "index" protected _uri => string(24) "contacts/magnitogorsk/17" protected _external => bool FALSE protected _params => array(2) ( "depot" => string(12) "magnitogorsk" "id" => string(2) "17" ) 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 => string(8) "HTTP/1.0" }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.0" protected _secure => bool FALSE protected _referrer => NULL protected _route => object Route(5)
{ protected _filters => array(0) protected _uri => string(25) "contacts(/<depot>(/<id>))" protected _regex => array(1) ( "depot" => string(6) "[a-z]*" ) protected _defaults => array(2) ( "controller" => string(8) "contacts" "action" => string(5) "index" ) protected _route_regex => string(63) "#^contacts(?:/(?P<depot>[a-z]*)(?:/(?P<id>[^/.,;?\n]++))?)?$#uD" }
protected _routes => array(0) protected _header => object HTTP_Header(0){ }
protected _body => NULL protected _directory => string(0) "" protected _controller => string(8) "Contacts" protected _action => string(5) "index" protected _uri => string(24) "contacts/magnitogorsk/17" protected _external => bool FALSE protected _params => array(2) ( "depot" => string(12) "magnitogorsk" "id" => string(2) "17" ) 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 => string(8) "HTTP/1.0" }109 $orig_response = $response = Response::factory(array('_protocol' => $request->protocol())); 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 [ 997 ] » Kohana_Request_Client->execute(arguments)
0
object Request(19)
{ 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 _filters => array(0) protected _uri => string(25) "contacts(/<depot>(/<id>))" protected _regex => array(1) ( "depot" => string(6) "[a-z]*" ) protected _defaults => array(2) ( "controller" => string(8) "contacts" "action" => string(5) "index" ) protected _route_regex => string(63) "#^contacts(?:/(?P<depot>[a-z]*)(?:/(?P<id>[^/.,;?\n]++))?)?$#uD" }
protected _routes => array(0) protected _header => object HTTP_Header(0){ }
protected _body => NULL protected _directory => string(0) "" protected _controller => string(8) "Contacts" protected _action => string(5) "index" protected _uri => string(24) "contacts/magnitogorsk/17" protected _external => bool FALSE protected _params => array(2) ( "depot" => string(12) "magnitogorsk" "id" => string(2) "17" ) 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) }
}992 throw new Request_Exception('Unable to execute :uri without a Kohana_Request_Client', array( 993 ':uri' => $this->_uri, 994 )); 995 } 996 997 return $this->_client->execute($this); 998 } 999 1000 /** 1001 * Returns whether this request is the initial request Kohana received. 1002 * Can be used to test for sub requests.
-
DOCROOT/index.php [ 127 ] » Kohana_Request->execute()
122 /** 123 * Execute the main request. A source of the URI can be passed, eg: $_SERVER['PATH_INFO']. 124 * If no source is specified, the URI will be automatically detected. 125 */ 126 echo Request::factory(TRUE, array(), FALSE) 127 ->execute() 128 ->send_headers(TRUE) 129 ->body(); 130 }