farang
Well-known member
Hi there! I've got a simple question.
Would it generally be possible to extend a class from another add-on the same way that I extend core XF classes?
I've created a code event listener and here is the listener function
My problem is that my function is never fired. (Just for debugging, I listen to event load_class without "event hint" )
Would it generally be possible to extend a class from another add-on the same way that I extend core XF classes?
I've created a code event listener and here is the listener function
Code:
public static function extendTheOtherAddOn($class, array &$extend)
{
if ($class == 'AnotherAddOn_XenForo_Model_Thread')
{
die("554646"); // well, just to debug ...
//$extend[] = 'fgX_LastPostPreview_WidgetFramework_XenForo_Model_Thread';
}
}
My problem is that my function is never fired. (Just for debugging, I listen to event load_class without "event hint" )