I am having trouble integrating php into my resources (pages). HTML is not a problem but when I place any php code in the r开发者_开发技巧esource it gets ignored. Am I missing something here or does ModX not support PHP?
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
精彩评论