L3gacy
Active member
I created a node with the PHP callback \AmmoForm\index with getData method. I wrapped the entire index.php file like so:
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.