PHP: I threw an error I don't understand.

Shaun Mason

Active member
Alright, I have been working on an add-on, and I do the following:

PHP:
class TSW_XboxLive_Model_User extends XFCP_TWS_XboxLive_Model_User
{
}

However, when I activate the listener that calls this:

PHP:
class TSW_XboxLive_EventListener_LoadClassModel
{	
    public static function listen($class, array &$extend)
    {
        if ($class == 'XenForo_Model_User'){
            $extend[] = 'TSW_XboxLive_Model_User';
        }
    }

I get a PHP error saying it cannot find the (is it pseudo?) class XFCP_TWS_XboxLive_Model_User

Any insight?
 
PHP:
     TSW_XboxLive_Model_User
XFCP_TWS_XboxLive_Model_User

Does that make your problem more clear?
 
Top Bottom