Newline on CI functions? - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21) +--- Thread: Newline on CI functions? (/showthread.php?tid=27058) |
Newline on CI functions? - El Forum - 01-30-2010 [eluser]veritascs[/eluser] The CI functions that output html don't have a newline on them so when I view source everything is on a single line. I know I could easily add a <code> . '\n'; </code> but I was wondering if there was a different global approach? Or am I just being <i>too</i> lazy? Newline on CI functions? - El Forum - 01-31-2010 [eluser]veritascs[/eluser] http://ellislab.com/forums/viewthread/142218/ Good answers here. Basically, formatting the output in php is only going to slow your site down. Browser plugins should format the html for you (ie firebug). |