![]() |
How can I use $vbulletin->db methods without globalizing $vbulletin?
How can I use $vbulletin->db methods, like query_read(), without globalizing $vbulletin and requiring global.php in my plugin that uses those methods?
I can access userinfo and a whole bunch of other variables by using $this->registry->[...], but $this doesn't appear to contain $vbulletin->db. |
Have you tried $this->registry->db?
|
If you are using a hook to execute your code, then what hook are you invoking the method from. We can then give you a better answer.
|
Wow, my brain must have been a little fried. Yes, $this->registry->db worked.
Thanks, nerbert and tbworld. |
All times are GMT. The time now is 02:11 AM. |
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:
|