![]() |
$this->load->view() leaving blank line? - 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: $this->load->view() leaving blank line? (/showthread.php?tid=59084) |
$this->load->view() leaving blank line? - El Forum - 08-22-2013 [eluser]Unknown[/eluser] Hello, I have noticed a problem in codeigniter and I'm wondering what is causing it. To replicated the error, from a fresh install of codeigniter I open up the welcome controller and edit it so it is as follows: Code: <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); If I then open up views/test.php and put in some html so the file looks like this: Code: <html> If I then load the application in the browser and view source, I can see the contents of views/test.php, but there is a blank line after </html>. In the browser 'view source' I have 10 lines when views/test.php is only 9. My question is how do I stop this blank line and only send the browser the code which is in view/test.php and get rid of the blank line? $this->load->view() leaving blank line? - El Forum - 08-23-2013 [eluser]InsiteFX[/eluser] Correct HTML 5. Code: <!DOCTYPE html> I have seen all of users on here leaving out the the html doctype. |