![]() |
Blank page after loading model - 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: Blank page after loading model (/showthread.php?tid=12244) |
Blank page after loading model - El Forum - 10-11-2008 [eluser]Zac G.[/eluser] I just added a model to autoload and now I am getting a blank page. Any ideas about why this would happen? The same thing happens if I load the model manually. Blank page after loading model - El Forum - 10-11-2008 [eluser]ray73864[/eluser] mind pasting the code for the model? hard to diagnose the problem without it Blank page after loading model - El Forum - 10-11-2008 [eluser]Zac G.[/eluser] Sure! I am working through the Wrox CI book, and this is my model: The file name is mproducts.php Code: <?php Blank page after loading model - El Forum - 10-11-2008 [eluser]Zac G.[/eluser] I have no idea what the problem was, but I seem to have fixed it. I think that something wasn't being passed right to one of the functions. Blank page after loading model - El Forum - 10-12-2008 [eluser]Jamie Rumbelow[/eluser] You usually get blank screens when php errors is turned off and you get a syntax error. Next time it happens, do a syntax check. Blank page after loading model - El Forum - 10-12-2008 [eluser]Zac G.[/eluser] Ah yes, it was blank because errors were turned off. Thanks! |