Anyone know why this would be happening?
Manager Keeps Removing ?> from Snippets When Saving
Using Revo 2.5.8
Thanks
[ed. note: markg last edited this post 8 years, 11 months ago.]
Content Creator and Copywriter
discuss.answer
This is normal.
MODX snippets and plugins should have no closing PHP tag. The closing tags aren't necessary and MODX will often be running some more PHP code after the snippet or plugin finishes. You should have a return statement at the end of each plugin or snippet, but no closing PHP tag.
Thanks Bob,
I thought that might be the case but I couldn't find any specific mention if it in the docs.
So, better to ask and learn.
Content Creator and Copywriter
Absolutely.