Welcome Guest, Not a member yet? Register   Sign In
Word 'Array' is displaying in my webpage
#1

[eluser]Unknown[/eluser]
hi to all codeigniter users.
My site is displaying with the word 'Array' whenever i load my webpage. I found that it is coming from controller class .
when i make php comments for the following line $this->output->set_output($outputData); in the index function ,it does not show the word 'Array'.
Can any experts give the solution ?
#2

[eluser]InsiteFX[/eluser]
Not without seeing your code!

InsiteFX
#3

[eluser]Jelmer[/eluser]
What InsiteFX said, without code it's impossible to say.

In all likelyhood you're adding an array to a string or trying to echo/print an array somewhere. PHP can't convert an array to a string when you do that, so it just prints the string "Array" instead.
#4

[eluser]John_Betong[/eluser]
Try adding die(); immediately before your script: $this->output->set_output($outputData);

If the ouput shows array(); then remove die() and step back, preferable halfway though your script and try to pinpoint the line which produces the array() output.

 
 




Theme © iAndrew 2016 - Forum software by © MyBB