jeudi 27 octobre 2016

Design Pattern for PHP that uses 3rd Party Template Engine

I am familiar with the MVC design pattern, but I am curious what pattern this would be considered.

A project I am looking at uses the Tiny but Strong (TBS) template engine and PHP for the back-end. For every PHP file there is a TBS template. The PHP is not OOP, nor employs any functions, so looks just procedural. (It sucks as I have been tasked with updating it and there is duplicate code in every single file... there is like 100 files).The PHP files do both the communicating with the database and dictating which TBS template to use.

Not sure if it would just be MV, CV, or if it is just procedural PHP with a template engine.

Aucun commentaire:

Enregistrer un commentaire