Welcome Guest, Not a member yet? Register   Sign In
A PHP Error was encountered - Message: Undefined index: title
#3

(02-18-2019, 09:24 PM)ciadmin Wrote: The only place in the controller code you show, that references an index "title", is
Code:
$data['title'] = $data['post']['title'];  
This must be line 59, no?

The error message suggests that $data['post'], which you get from
Code:
$this->Post_model->get_posts($slug);
is not returning an array with a 'title' element.

This sounds like the problem lies in your Post_model, or in the datait is retrieving.

Thank you so much Mr.Admin....

As solution i just removed the line under and all the things works fine!

Code:
$data['title'] = $data['post']['title'];

Thank you so much for the Light!
Reply


Messages In This Thread
RE: A PHP Error was encountered - Message: Undefined index: title - by Porto - 02-19-2019, 06:26 AM



Theme © iAndrew 2016 - Forum software by © MyBB