![]() |
How to access the method of an object that is inside an object
Hi guys and gals, once again i hit bump in this project.
the thing is that I have 2 classes, well I think it's better if i put the code first: PHP Code:
PHP Code:
any ideas on what i am doing wrong? thanks for the help in advance. |
1 Attachment(s)
That returns 3 for me. Are you trying to do something like the following, because this is really the only way I can think of causing that error you're getting:
php Code:
|
yes! i am trying to see if they are empty, I forgot to mention that.
|
I see, I see! Sadly,
empty cannot check the return value, for some unknown reason. I don't know the real reasoning behind it. Assign the value to a variable first, and then check if that variable is empty or not.php Code:
|
Awesome, that worked! though I am curious as to why. I'll search more after I finish the project.
Thanks for the help :) |
And please let us know, too! Best of luck, my friend :-)
|
| All times are GMT. The time now is 02:41 AM. |
Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0