View Single Post
02-27-2009, 07:10 PM
Join Date: Apr 2007
Originally Posted by
This should actually give me an error: "Fatal blabla.. cannot convert object to string... blabla".. because it returns $this.. but it doesn't. It just displays blank.
Anyone see the problem?
That's because the return value (which is assigned to
) isn't an object instance, it's NULL.
If some SQL is passed through to
block is followed. This block just calls
then exits the
block. Following that route, nothing is returned from
will be NULL which will print nothing when echoed.
As sketchMedia said, just put return before that loadQuery/exeQuery line.
The Following User Says Thank You to Salathe For This Useful Post:
View Public Profile
Send a private message to Salathe
Visit Salathe's homepage!
Find More Posts by Salathe