امتیازها
113
راهحلها
27
- محل سکونت
- England
- نوشتهها
- 26,276
- تاریخ ثبتنام
- ۱۳۹۹٫۰۴٫۰۶
- پسندها
- 3,286
- سن
- 29
- وب سایت
- xenforo.xyz
- نسخه PHP
- 7.3
- نسخه زنفورو
- xenforo 2.2
I created a node with the PHP callback \AmmoForm\index with getData method. I wrapped the entire index.php file like so:
Code:
I then received an error stating "syntax error unexpected T_DECLARE expecting T_FUNCTION". Upon saving the node I received the following error:

Any ideas what I'm doing wrong.
Code:
کد:
<?php
namespace AmmoForm;
class Index{
index.php contents
}
?>
I then received an error stating "syntax error unexpected T_DECLARE expecting T_FUNCTION". Upon saving the node I received the following error:

Any ideas what I'm doing wrong.
