امتیازها
113
راهحلها
27
- محل سکونت
- England
- نوشتهها
- 26,276
- تاریخ ثبتنام
- ۱۳۹۹٫۰۴٫۰۶
- پسندها
- 3,286
- سن
- 29
- وب سایت
- xenforo.xyz
- نسخه PHP
- 7.3
- نسخه زنفورو
- xenforo 2.2
Dear Friends,
for my addon, I extended some classes, like for example the \XF\Service\PushNotification class. For that I created an extension class, under development->Class extension, then the file extension_hint.php is created in my project, with the following:
namespace MyCompany\MyAddon\XF\Service
{
class XFCP_PushNotification extends \XF\Service\PushNotification {}
}
Then in my addon, I create a class that extends XFCP_PushNotification , and all works as expected. The functions...
Read more
for my addon, I extended some classes, like for example the \XF\Service\PushNotification class. For that I created an extension class, under development->Class extension, then the file extension_hint.php is created in my project, with the following:
namespace MyCompany\MyAddon\XF\Service
{
class XFCP_PushNotification extends \XF\Service\PushNotification {}
}
Then in my addon, I create a class that extends XFCP_PushNotification , and all works as expected. The functions...
Read more
