L
L3gacy
Guest
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.
Continue reading...
Code:
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.
Continue reading...