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

APPPATH/classes/controller/page.php [ 338 ]

333 	public function action_news(){
334 		$ln = $this->lang;
335 		$id = $this->request->param('id');
336 		$this->data->pro = R::findOne("haberler", "slugen=?", array($id));
337 		$this->view = "newsdetail";
338 		$this->data->title = json_decode($this->data->pro->title)->$ln;
339 	}
340 
341 	public function news(){
342 		$this->data->title = "News";
343 		$this->data->news = R::findAll("haberler", "order by ord asc");
  1. APPPATH/classes/controller/page.php [ 338 ] » Kohana_Core::error_handler(arguments)

  2. {PHP internal call} » Controller_Page->action_news()

  3. SYSPATH/classes/kohana/request/client/internal.php [ 118 ] » ReflectionMethod->invoke(arguments)

  4. SYSPATH/classes/kohana/request/client.php [ 64 ] » Kohana_Request_Client_Internal->execute_request(arguments)

  5. SYSPATH/classes/kohana/request.php [ 1138 ] » Kohana_Request_Client->execute(arguments)

  6. DOCROOT/index.php [ 111 ] » Kohana_Request->execute()

Environment