The inclusion of both PHP code and content in the pages has me a bit confused about the intended content management workflow in October.
Let's assume that I build an October site for my client on my local dev server: 1) My "pages" files include both PHP code and content. 2) I check all of my files into git and deploy to production. 3) My client logs into the October CMS on my production server and changes some of the content in the pages. 4) Now I want to change some of the PHP code in the same pages, but I have a race condition... 5) If I update the PHP code locally, check-in to git and deploy, I will overwrite my client's content changes.
This is what confuses me about intermixing php code and content. What is the recommended workflow to keep from stomping over my client's changes in this case?
Should I not allow my client to change any content in the "pages" files? Or, should I make sure all of the user-editable content is stored in the DB via custom models?
Thanks!