Welcome Guest, Not a member yet? Register   Sign In
Getting error: Object of class CI_Output could not be converted to string
#3

(This post was last modified: 03-01-2016, 08:05 PM by siburny.)

You don't need to load a view if you are using set_output
PHP Code:
public function json_output(){ 
PHP Code:
$this->output
   
->set_content_type('application/json')
   ->
set_output(json_encode($this->json_model->get_user(),true));
 
   
Reply


Messages In This Thread
RE: Getting error: Object of class CI_Output could not be converted to string - by siburny - 03-01-2016, 08:01 PM



Theme © iAndrew 2016 - Forum software by © MyBB