ErrorException [ Notice ]: Trying to get property of non-object

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);
  1. APPPATH/classes/Controller/News.php [ 24 ] » Kohana_Core::error_handler(arguments)

  2. APPPATH/classes/Kohana/Controller.php [ 93 ] » Controller_News->action_index()

  3. {PHP internal call} » Kohana_Controller->execute()

  4. SYSPATH/classes/Kohana/Request/Client/Internal.php [ 97 ] » ReflectionMethod->invoke(arguments)

  5. SYSPATH/classes/Kohana/Request/Client.php [ 114 ] » Kohana_Request_Client_Internal->execute_request(arguments)

  6. SYSPATH/classes/Kohana/Request.php [ 990 ] » Kohana_Request_Client->execute(arguments)

  7. DOCROOT/index.php [ 137 ] » Kohana_Request->execute()

Environment