امتیازها
113
راهحلها
27
- محل سکونت
- England
- نوشتهها
- 26,276
- تاریخ ثبتنام
- ۱۳۹۹٫۰۴٫۰۶
- پسندها
- 3,286
- سن
- 29
- وب سایت
- xenforo.xyz
- نسخه PHP
- 7.3
- نسخه زنفورو
- xenforo 2.2
I need to throw exception in setup but the class is already extended by AbstractSetup and the exception comes from AbstractController.
Is there an easy way to get the exception and throw a message? Or can I extends two classes at the same time ?
Code:
Read more
Is there an easy way to get the exception and throw a message? Or can I extends two classes at the same time ?
Code:
کد:
public function uninstallStep1()
{
$data = \XF::finder('My\Addon:Class')->fetchOne();
if ($data['column']) {
throw $this->exception(
$this->error(\XF::phrase('not_valid'))...
Read more
