The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
How to integrate vbulletin into phpMVC framework?
Hi, I would like to integrate some vbulletin features into a website based upon a php framework. I've already managed to do it with a simple website but now I would like to reach the same goal with an OOP and MVC structure.
I'm trying to create a main class (to be extended by the controllers) to initialize the vbulletin registry object in order to integrate vbulletin login and to use the bb code parser class. Here is the issue: including the global.php inside the class constructor I got a fatal error on a method that use the $vbulletin object. Code:
Call to a member function query_write() on a non-object in forum/includes/functions.php on line 5226. Thanks in advance. |
#2
|
||||
|
||||
You probably need to include global.php outside the class, as any variables (such as $vbulletin) initialised inside the class will be in the local scope - not what you want.
|
#3
|
|||
|
|||
:\ No other way then?
|
#4
|
||||
|
||||
Not really, no.
|
#5
|
|||
|
|||
Well the thing works fine into a stand alone class but I get the same error (Call to a member function query_write() on a non-object) whenever I try to use it inside a PHP framework (i tried CodeIgniter and Kohanaphp).
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|