I am having trouble integrating php into my resources (pages). HTML is not a problem but when I place any php code in the resource it gets ignored. Am I missing something here or does ModX not support PHP?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
MODX does indeed support PHP, big-time. But in MODX, PHP goes in “snippets”, and the snippets are referenced in resources like this: [[mySnippet]]. Put PHP directly into a resource and it will be ignored.
More in the documentation: http://rtfm.modx.com/display/Evo1/Adding+Snippets