Separation of presentation and business logic in PHP
- by Markus Ossi
I am programming my first real PHP website and am wondering how to make my code more readable to myself. The reference book I am using is PHP and MySQL Web Development 4th ed.
The aforementioned book gives three approaches to separating logic and content:
include files
function or class API
template system
I haven't chosen any of these yet, as…