Using pure PHP templates
Pure PHP templates are a widely used technique within popular frameworks, including WordPress. In this technique, template files are created as separate PHP files to contain the visual output of the data. The separation of models, views, and controllers allows us to manage each concern of the application development independently from each other, thus increasing maintainability and extensibility. In ideal situations, views should have a very limited business logic, or, if possible, no logic at all. Most probably, designers who don't have much of an idea about PHP coding will be working with views. Therefore, it's important to keep the views as simple as possible with display logic and data. The data required for the ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access