CodeIgniter Forums
Template rendering blank - 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: Template rendering blank (/showthread.php?tid=22986)



Template rendering blank - El Forum - 09-25-2009

[eluser]newsun[/eluser]
Hi, I have a template that I am using with the Template library with one major content variable.

Right now when I render the template it just shows up blank. If I put an exit; statement near the end of my master template, the code renders. Now there is nothing really after this exit; so I am a bit baffled.

Any ideas?


Template rendering blank - El Forum - 09-25-2009

[eluser]Johan André[/eluser]
Are you using a php-endtag in your classes?
If you do - don't. Sometimes there is whitespace after them which causes blank output.
It's kindof a classic problem really...