1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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

Discussion in 'XenForo Development Discussions' started by Shaun Mason, Mar 15, 2011.

  1. Shaun Mason

    Shaun Mason Active Member

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

    class TSW_XboxLive_Model_User extends XFCP_TWS_XboxLive_Model_User
    However, when I activate the listener that calls this:

    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?
  2. Arik

    Arik Well-Known Member

    Does that make your problem more clear?
  3. Shaun Mason

    Shaun Mason Active Member

    Haha, yes
  4. Shaun Mason

    Shaun Mason Active Member

    Stupid fat fingers.
  5. fattony69

    fattony69 Well-Known Member

    I do it all the time too. It's not just you.

Share This Page