CodeIgniter Forums
White Spaces with load of models - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: White Spaces with load of models (/showthread.php?tid=57145)



White Spaces with load of models - El Forum - 02-19-2013

[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.


White Spaces with load of models - El Forum - 02-20-2013

[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.


White Spaces with load of models - El Forum - 02-20-2013

[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 !