I’ve been using MODx for a little while now and I’ve known from the start that editing PHP/HTML code inside of textareas is a ridiculous way to go. I want to somehow separate these files so I can edit them in an actual text editor and put them under source control.
What’s the best way to do this? I can think of some ways, but nothing that strikes me as a good idea.
Thanks,
Jason
Thanks for the reply. I understand what that code does and this may be a dumb question, but where exactly does that code go? As far as I understand, PHP can only be run inside of snippets. What do I do for chunks and templates?
Or is that the code for a snippet that includes an external file?