Welcome Guest, Not a member yet? Register   Sign In
Array To String error / undefined $query
#10

(08-16-2016, 10:46 AM)Wouter60 Wrote: In your controller, you are calling the render method like this:
PHP Code:
$this->render('admin/docs/existing_view'$data); 
Where the second parameter $data is an array of objects.

However, in your MY_Controller, the render function expects a string as the second parameter:
PHP Code:
protected function render($the_view NULL$template 'master'

That's why you are getting the array to string conversion error.

Thank you for your answer! What should I do then?
Reply


Messages In This Thread
RE: Array To String error / undefined $query - by CodinMoldovanu - 08-16-2016, 11:11 AM



Theme © iAndrew 2016 - Forum software by © MyBB