Welcome Guest, Not a member yet? Register   Sign In
Models causing blank pages
#2

[eluser]Pascal Kriete[/eluser]
Hey Xirgo,

Let's start with the syntax errors. I see two right now:
1) The database loading call should be in a method, in this case the constructor is probably the best choice. Classes are not processed top-down, and can't contain any logic outside of class methods.
2) Your second method declaration needs a pair of parentheses to be valid.

Blank pages usually indicate that the script has one or more syntax errors and the PHP interpreter can't parse it. A lot of setups don't show parse errors by default, but there is a PHP directive called 'display_errors' that will turned them on.
Errors sneak in quite a lot, so it's nice to have a development setup that will show them. Production should, of course, fail silently (or not at all Smile ).

Let us know how that goes.
Welcome to CodeIgniter.


Messages In This Thread
Models causing blank pages - by El Forum - 09-12-2008, 07:29 PM
Models causing blank pages - by El Forum - 09-12-2008, 10:23 PM
Models causing blank pages - by El Forum - 09-13-2008, 06:03 AM
Models causing blank pages - by El Forum - 09-13-2008, 06:47 AM
Models causing blank pages - by El Forum - 09-13-2008, 07:23 AM
Models causing blank pages - by El Forum - 09-13-2008, 07:32 AM



Theme © iAndrew 2016 - Forum software by © MyBB