APPPATH/classes/Controller/News.php [ 24 ]
19 public function action_index()
20 {
21 $articles = Model::factory('Articles')->get_all();
22 $info = Model::factory('Pages')->get_page_by_translit('news');
23 $this->template->name = 'Новости';
24 $this->template->title = $info[0]->title;
25 $this->template->keywords = $info[0]->keywords;
26 $this->template->description = $info[0]->description;
27 $this->template->content = View::factory("articles/all")
28 ->set('articles',$articles)
29 ->set('month_ru',$this->month_ru);
-
APPPATH/classes/Controller/News.php [ 24 ] » Kohana_Core::error_handler(arguments)
0
integer 8
1
string(36) "Trying to get property of non-object"
2
string(67) "/home/c/cr35895/public_html/application/classes/Controller/News.php"
3
integer 24
4
array(2) ( "articles" => object Database_Result_Cached(6)
{ protected _query => string(216) "SELECT articles.*, articles_img.photo FROM articles JOIN articles_img ON (articles.id = articles_img.articles_id) WHERE articles …" protected _result => array(0) protected _total_rows => integer 0 protected _current_row => integer 0 protected _as_object => bool TRUE protected _object_params => NULL }
"info" => object Database_Result_Cached(6){ protected _query => string(43) "SELECT * FROM pages WHERE translit = 'news'" protected _result => array(0) protected _total_rows => integer 0 protected _current_row => integer 0 protected _as_object => bool TRUE protected _object_params => NULL }
)19 public function action_index() 20 { 21 $articles = Model::factory('Articles')->get_all(); 22 $info = Model::factory('Pages')->get_page_by_translit('news'); 23 $this->template->name = 'Новости'; 24 $this->template->title = $info[0]->title; 25 $this->template->keywords = $info[0]->keywords; 26 $this->template->description = $info[0]->description; 27 $this->template->content = View::factory("articles/all") 28 ->set('articles',$articles) 29 ->set('month_ru',$this->month_ru);
-
APPPATH/classes/Kohana/Controller.php [ 93 ] » Controller_News->action_index()
88 array(':uri' => $this->request->uri()) 89 )->request($this->request); 90 } 91 92 // Execute the action itself 93 $this->{$action}(); 94 95 // Execute the "after action" method 96 $this->after(); 97 98 // Return the response
-
{PHP internal call} » Kohana_Controller->execute()
-
SYSPATH/classes/Kohana/Request/Client/Internal.php [ 97 ] » ReflectionMethod->invoke(arguments)
0
object Controller_News(14)
{ public template => object View(2)
{ protected _file => string(54) "/home/c/cr35895/public_html/application/views/news.php" protected _data => array(15) ( "phone" => string(0) "" "title" => string(76) "Лечение зубов в стоматологии Красноярска" "description" => string(0) "" "text_top" => string(46) "Наш новый сайт: http://alberg24.ru" "text_bottom" => string(0) "" "email" => string(0) "" "sheduler" => string(0) "" "top_menu" => string(31) " <li ><a href="//"></a></li>" "form_order" => object View(2)
public month_ru => array(12) ( 0 => string(12) "января" 1 => string(14) "февраля" 2 => string(10) "марта" 3 => string(12) "апреля" 4 => string(6) "мая" 5 => string(8) "июня" 6 => string(8) "июля" 7 => string(14) "августа" 8 => string(16) "сентября" 9 => string(14) "октября" 10 => string(12) "ноября" 11 => string(14) "декабря" ) public _settings => array(8) ( "title" => string(76) "Лечение зубов в стоматологии Красноярска" "keywords" => string(0) "" "description" => string(0) "" "text_top" => string(46) "Наш новый сайт: http://alberg24.ru" "text_bottom" => string(0) "" "phone" => string(0) "" "email" => string(0) "" "sheduler" => string(0) "" ) public auto_render => bool TRUE public _initial => bool FALSE public _role => bool FALSE public _role_name => bool FALSE public _role_tag => bool FALSE public _user => bool FALSE public _user_login => bool FALSE public _user_img => bool FALSE public _modules => bool FALSE public request => object Request(19){ protected _file => string(60) "/home/c/cr35895/public_html/application/views/form_order.php" protected _data => array(0) }
"footer" => object View(2){ protected _file => string(56) "/home/c/cr35895/public_html/application/views/footer.php" protected _data => array(3) ( "controller" => string(4) "news" "phone" => string(0) "" "address" => string(46) "Наш новый сайт: http://alberg24.ru" ) }
"styles" => object View(2){ protected _file => string(56) "/home/c/cr35895/public_html/application/views/styles.php" protected _data => array(0) }
"scripts" => object View(2){ protected _file => string(57) "/home/c/cr35895/public_html/application/views/scripts.php" protected _data => array(0) }
"metrika" => object View(2){ protected _file => string(57) "/home/c/cr35895/public_html/application/views/metrika.php" protected _data => array(0) }
"content" => string(0) "" "name" => string(14) "Новости" ) }{ protected _requested_with => NULL protected _method => string(3) "GET" protected _protocol => string(8) "HTTP/1.0" protected _secure => bool TRUE protected _referrer => string(26) "https://krasdent24.ru/news" protected _route => object Route(5)
public response => object Response(5){ protected _filters => array(0) protected _uri => string(4) "news" protected _regex => array(0) protected _defaults => array(2) ( "controller" => string(4) "news" "action" => string(5) "index" ) protected _route_regex => string(10) "#^news$#uD" }
protected _routes => array(0) protected _header => object HTTP_Header(0){ }
protected _body => NULL protected _directory => string(0) "" protected _controller => string(4) "News" protected _action => string(5) "index" protected _uri => string(4) "news" 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(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 => NULL }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 TRUE protected _referrer => string(26) "https://krasdent24.ru/news" protected _route => object Route(5)
{ protected _filters => array(0) protected _uri => string(4) "news" protected _regex => array(0) protected _defaults => array(2) ( "controller" => string(4) "news" "action" => string(5) "index" ) protected _route_regex => string(10) "#^news$#uD" }
protected _routes => array(0) protected _header => object HTTP_Header(0){ }
protected _body => NULL protected _directory => string(0) "" protected _controller => string(4) "News" protected _action => string(5) "index" protected _uri => string(4) "news" 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(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 => NULL }109 $orig_response = $response = Response::factory(); 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 [ 990 ] » 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 TRUE protected _referrer => string(26) "https://krasdent24.ru/news" protected _route => object Route(5)
{ protected _filters => array(0) protected _uri => string(4) "news" protected _regex => array(0) protected _defaults => array(2) ( "controller" => string(4) "news" "action" => string(5) "index" ) protected _route_regex => string(10) "#^news$#uD" }
protected _routes => array(0) protected _header => object HTTP_Header(0){ }
protected _body => NULL protected _directory => string(0) "" protected _controller => string(4) "News" protected _action => string(5) "index" protected _uri => string(4) "news" 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(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) }
}985 throw new Request_Exception('Unable to execute :uri without a Kohana_Request_Client', array( 986 ':uri' => $this->_uri, 987 )); 988 } 989 990 return $this->_client->execute($this); 991 } 992 993 /** 994 * Returns whether this request is the initial request Kohana received. 995 * Can be used to test for sub requests.
-
DOCROOT/index.php [ 137 ] » Kohana_Request->execute()
132 /** 133 * Execute the main request. A source of the URI can be passed, eg: $_SERVER['PATH_INFO']. 134 * If no source is specified, the URI will be automatically detected. 135 */ 136 echo Request::factory(TRUE, array(), FALSE) 137 ->execute() 138 ->send_headers(TRUE) 139 ->body(); 140 }