Welcome Guest, Not a member yet? Register   Sign In
White Spaces with load of models
#1

[eluser]Unknown[/eluser]
Hello everyone, I'm using Codeigniter, and I don't understand why I always have a white space in my HTML. It cause a lot of trouble, like <head> doesn't load. But it does appear just when I load models and use them. If I put the model functions directly in the controller and call them, they work perfectly.

Any idea where the problem come from ?

Thank a lot !

Have a nice day.
#2

[eluser]PhilTem[/eluser]
The problem most likely originates from a white space or new line at the top of some of your files, may it be a controller, model, library, config, ... whatsoever. Go through the files that you wrote and look at the very first line and character. If the first line does not start with "<?php" but something else, you need to fix it.
#3

[eluser]Unknown[/eluser]
Thank you for your reply. But I'm sorry, I tried the answer earlier this morning, it was an encoding problem, even if I double checked the encodage.

So excuse me for wasting your time, and thank again for your reply, I tried to delete this topic but I didn't.

Bye !




Theme © iAndrew 2016 - Forum software by © MyBB