Noob Question: MyFirstPlugin

Asked by Nick

I have been trying to learn how to use PHPDS but have been unable to get a form to work. In your "Your first PHPDevShell script" I get an error concerning this line: $FORM_HTML = <<
The error is "syntax error, unexpected T_SL"
What can I do to fix this?

Question information

Language:
English Edit question
Status:
Solved
For:
PHPDevShell Edit question
Assignee:
No assignee Edit question
Solved by:
Nick
Solved:
Last query:
Last reply:
Revision history for this message
Nick (i-mail-j) said :
#1

I found an updated first.php file and the tutorial works now. I suggest you update the tutorial is so it works properly without forcing the learner to hunt down working code.

Revision history for this message
Greg (gregfr) said :
#2

Hello

Can you please specify where exactly you found the buggy file?

Thanks

Revision history for this message
Nick (i-mail-j) said :
#3
Revision history for this message
Greg (gregfr) said :
#4

OK it's actually a bug in Wordpress display, the line should read:

$FORM_HTML = <<<HTML

instead of

$FORM_HTML = <<

I'll try to find a way of fixing that.

Revision history for this message
Greg (gregfr) said :
#5

Should be fixed now, thanks for your feedback.