![]() |
Call to Member function on a non-object
I created a class to handle my groups info. But when I try to get the info from the db I get.
Call to a member function query_read() on a non-object Is there a special way to call $db->query_first_slave() or query_read from inside a custom class? |
It kinda depends. I can't really say since you haven't posted what you wrote. Could be:
PHP Code:
|
I figured it out, when I created the class I passed the object $vbulletin in, then checked that it was an object and if so assigned it to $this->registry
I was doing exactly what you was showing, but it didn't work |
All times are GMT. The time now is 02:40 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|